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

Reply via email to