http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51258

             Bug #: 51258
           Summary: 64-bit gcc.dg/atomic-compare-exchange-5.c link failure
                    on 32-bit Solaris/x86
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: r...@gcc.gnu.org
                CC: r...@gcc.gnu.org
              Host: i386-pc-solaris2.1[01]
            Target: i386-pc-solaris2.1[01]
             Build: i386-pc-solaris2.1[01]


Several 64-bit atomic-* tests fail to link with a 32-bit Solaris/x86 gcc:

Running target unix/-m64
FAIL: gcc.dg/atomic-compare-exchange-5.c (test for excess errors)
WARNING: gcc.dg/atomic-compare-exchange-5.c compilation failed to produce
executable
FAIL: gcc.dg/atomic-exchange-5.c (test for excess errors)
WARNING: gcc.dg/atomic-exchange-5.c compilation failed to produce executable
FAIL: gcc.dg/atomic-load-5.c execution test
FAIL: gcc.dg/atomic-op-5.c (test for excess errors)
WARNING: gcc.dg/atomic-op-5.c compilation failed to produce executable
FAIL: gcc.dg/atomic-store-5.c (test for excess errors)
WARNING: gcc.dg/atomic-store-5.c compilation failed to produce executable

E.g. 

FAIL: gcc.dg/atomic-compare-exchange-5.c (test for excess errors)
Excess errors:
Undefined            first referenced
 symbol                  in file
__atomic_compare_exchange_16        /var/tmp//ccSEaa.G.o

FAIL: gcc.dg/atomic-exchange-5.c (test for excess errors)
Excess errors:
Undefined            first referenced
 symbol                  in file
__atomic_exchange_16                /var/tmp//cci5aWbI.o

FAIL: gcc.dg/atomic-op-5.c (test for excess errors)
Excess errors:
Undefined            first referenced
 symbol                  in file
__atomic_fetch_nand_16              /var/tmp//ccnFaOtM.o
__atomic_fetch_or_16                /var/tmp//ccnFaOtM.o
__atomic_fetch_add_16               /var/tmp//ccnFaOtM.o
__atomic_fetch_and_16               /var/tmp//ccnFaOtM.o
__atomic_fetch_xor_16               /var/tmp//ccnFaOtM.o
__atomic_fetch_sub_16               /var/tmp//ccnFaOtM.o

FAIL: gcc.dg/atomic-store-5.c (test for excess errors)
Excess errors:
Undefined            first referenced
 symbol                  in file
__atomic_store_16                   /var/tmp//ccV8ayIN.o

Reply via email to