This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/44217] New: GCC emits cmpxchg16b which Sun as cannot handle
- From: "ro at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2010 18:30:59 -0000
- Subject: [Bug target/44217] New: GCC emits cmpxchg16b which Sun as cannot handle
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
On Solaris 11/x86 with Sun as, two 64-bit libgomp testcases fail:
FAIL: libgomp.c/atomic-2.c (test for excess errors)
WARNING: libgomp.c/atomic-2.c compilation failed to produce executable
FAIL: libgomp.c/atomic-5.c (test for excess errors)
WARNING: libgomp.c/atomic-5.c compilation failed to produce executable
In libgomp.log, I find
Excess errors:
Assembler: atomic-2.c
"/var/tmp//ccXCaqFL.s", line 51 : Illegal mnemonic
Near line: " lock cmpxchg16b ld(%rip)"
"/var/tmp//ccXCaqFL.s", line 51 : Syntax error
Near line: " lock cmpxchg16b ld(%rip)"
"/var/tmp//ccXCaqFL.s", line 51 : Illegal mnemonic
Near line: " lock cmpxchg16b ld(%rip)"
>From running strings on the as binary, Sun as simply doesn't know about this
instruction.
--
Summary: GCC emits cmpxchg16b which Sun as cannot handle
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
GCC build triplet: i386-pc-solaris2.11
GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44217