Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 18:47:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 225054] java/openjdk* : fails to build with clang 6.0 (blocks 571 ports)
Message-ID:  <bug-225054-8522-Qz0OcIrM7Z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225054-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225054-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225054

Jung-uk Kim <jkim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jkim@FreeBSD.org
             Status|New                         |Open

--- Comment #2 from Jung-uk Kim <jkim@FreeBSD.org> ---
This patch does not look good.  The previous inline assembly should generate
something like this:

        je      .Ltmp0
        lock
.Ltmp0:
        cmpxchgl        %ecx, (%edi)

Assembled:

   4:   0f 84 01 00 00 00       je     b <test+0xb>
   a:   f0 67 0f b1 0f          lock addr32 cmpxchg %ecx,(%edi)

Your patch will generate something like this:

        je      .Ltmp0
.Ltmp0:
        lock
        cmpxchgl        %ecx, (%edi)

Assembled:

   4:   0f 84 00 00 00 00       je     a <test+0xa>
   a:   f0 67 0f b1 0f          lock addr32 cmpxchg %ecx,(%edi)

As you can see, this patch *always* adds the prefix for cmpxchg.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225054-8522-Qz0OcIrM7Z>