Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 19:48:50 +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-beo2F97Zlv@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

--- Comment #7 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Jan Beich from comment #5)
> Dimitry, can you find Clang commit that changed integrated assembler in
> order for us to better understand the rationale?

Yes, this was caused by https://reviews.llvm.org/rL315899; the changes were=
 for
"better" rep/lock prefix support, but I filed several severe regression bug=
s,
after noticing these during world and ports builds, see:
* https://bugs.llvm.org/show_bug.cgi?id=3D35741 (comments after x86 prefixes
cause errors )
* https://bugs.llvm.org/show_bug.cgi?id=3D35749 (.byte directives after x86
prefixes cause errors)
* https://bugs.llvm.org/show_bug.cgi?id=3D35831 (labels after x86 prefixes =
cause
errors)

The first bug was fixed fairly quickly, but there has been no movement on t=
he
other two, and I think it is likely that more edge cases exist.

I asked in PR35749 whether the release manager will consider reverting the
upstream change in the 6.0.0 branch, since this regressed so much.  I will =
ask
again.


> (In reply to Jung-uk Kim from comment #6)
> (In reply to Jan Beich from comment #4)
>=20
> That's bad. :-(
>=20
> Then, I guess we have no choice but to do something like this:
>=20
> +-#define LOCK_IF_MP(mp) "cmp $0, " #mp "; je 1f; lock; 1: "
> ++#define LOCK_IF_MP(mp) "cmp $0, " #mp "; je 1f; .byte 0xf0; 1: "

Yes, that is the workaround I put in my local ports tree too.  But I hate i=
t :(

--=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-beo2F97Zlv>