http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51324
Bug #: 51324 Summary: FAIL: gcc.dg/atomic-compare-exchange-3.c (test for excess errors) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu Executing on host: /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/objdi r/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/atomic-compare-exchange-3.c -ansi -pedantic-errors -lm -o ./atomic-compare-exchange-3.exe (timeout = 300) spawn /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/objdir/gcc/ /home/ dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/atomic-compare-exchange-3.c -ansi -pedanti c-errors -lm -o ./atomic-compare-exchange-3.exe /tmp/ccQkI71e.o: In function `main': (.text+0x44): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main':(.text+0xa8): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x110): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x1b4): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x21c): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o:(.text+0x2cc): more undefined references to `__atomic_compare_ex change_4' follow collect2: error: ld returned 1 exit status compiler exited with status 1output is: /tmp/ccQkI71e.o: In function `main': (.text+0x44): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0xa8): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x110): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x1b4): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o: In function `main': (.text+0x21c): undefined reference to `__atomic_compare_exchange_4' /tmp/ccQkI71e.o:(.text+0x2cc): more undefined references to `__atomic_compare_exchange_4' follow collect2: error: ld returned 1 exit status FAIL: gcc.dg/atomic-compare-exchange-3.c (test for excess errors) This is supposed to fallback to sync_compare_and_swap. Similar fails: Executing on host: /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/objdir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/atomic-op-1.c -ansi -peda ntic-errors -lm -o ./atomic-op-1.exe (timeout = 300) spawn /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/objdir/gcc/ /home/ dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/atomic-op-1.c -ansi -pedantic-errors -lm - o ./atomic-op-1.exe /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xaf8): undefined reference to `__sync_fetch_and_ior_1'/tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xb58): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xbd0): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xc30): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xca8): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o:(.text+0xd20): more undefined references to `__sync_fetch_and_ior_1' follow /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x18d0): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1930): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x19a8): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1a08): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1a80): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o:(.text+0x1afc): more undefined references to `__sync_ior_and_fetch_1' follow /tmp/ccAwofqX.o: In function `test_add': (.text+0x1bac): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1c20): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1c78): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1cd0): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1d44): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o:(.text+0x1db8): more undefined references to `__atomic_fetch_add_1' follow /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1ea4): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1f60): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1ff8): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x2090): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x214c): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o:(.text+0x2208): more undefined references to `__atomic_fetch_sub_1' follow /tmp/ccAwofqX.o: In function `test_and': (.text+0x22e8): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x2378): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x23e0): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x247c): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x24e4): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o:(.text+0x2568): more undefined references to `__atomic_fetch_and_1' follow /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2608): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2688): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x26e0): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2760): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x27d0): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o:(.text+0x2838): more undefined references to `__atomic_fetch_nand_1' follow /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2914): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x29a0): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x29f8): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2a74): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2adc): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o:(.text+0x2b68): more undefined references to `__atomic_fetch_xor_1' follow /tmp/ccAwofqX.o: In function `test_or': (.text+0x2c0c): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2c28): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2cb4): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2cd0): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2d40): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2d5c): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2dcc): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2de8): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2e74): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2e90): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2f20): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2f3c): undefined reference to `__atomic_fetch_or_1' collect2: error: ld returned 1 exit status compiler exited with status 1 output is: /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xaf8): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xb58): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xbd0): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xc30): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_fetch_or': (.text+0xca8): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o:(.text+0xd20): more undefined references to `__sync_fetch_and_ior_1' follow /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x18d0): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1930): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x19a8): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1a08): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or_fetch': (.text+0x1a80): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o:(.text+0x1afc): more undefined references to `__sync_ior_and_fetch_1' follow /tmp/ccAwofqX.o: In function `test_add': (.text+0x1bac): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1c20): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1c78): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1cd0): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o: In function `test_add': (.text+0x1d44): undefined reference to `__atomic_fetch_add_1' /tmp/ccAwofqX.o:(.text+0x1db8): more undefined references to `__atomic_fetch_add_1' follow /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1ea4): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1f60): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x1ff8): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x2090): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o: In function `test_sub': (.text+0x214c): undefined reference to `__atomic_fetch_sub_1' /tmp/ccAwofqX.o:(.text+0x2208): more undefined references to `__atomic_fetch_sub_1' follow /tmp/ccAwofqX.o: In function `test_and': (.text+0x22e8): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x2378): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x23e0): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x247c): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o: In function `test_and': (.text+0x24e4): undefined reference to `__atomic_fetch_and_1' /tmp/ccAwofqX.o:(.text+0x2568): more undefined references to `__atomic_fetch_and_1' follow /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2608): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2688): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x26e0): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x2760): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o: In function `test_nand': (.text+0x27d0): undefined reference to `__atomic_fetch_nand_1' /tmp/ccAwofqX.o:(.text+0x2838): more undefined references to `__atomic_fetch_nand_1' follow /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2914): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x29a0): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x29f8): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2a74): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o: In function `test_xor': (.text+0x2adc): undefined reference to `__atomic_fetch_xor_1' /tmp/ccAwofqX.o:(.text+0x2b68): more undefined references to `__atomic_fetch_xor_1' follow /tmp/ccAwofqX.o: In function `test_or': (.text+0x2c0c): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2c28): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2cb4): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2cd0): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2d40): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2d5c): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2dcc): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2de8): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2e74): undefined reference to `__sync_ior_and_fetch_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2e90): undefined reference to `__atomic_fetch_or_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2f20): undefined reference to `__sync_fetch_and_ior_1' /tmp/ccAwofqX.o: In function `test_or': (.text+0x2f3c): undefined reference to `__atomic_fetch_or_1' collect2: error: ld returned 1 exit status FAIL: gcc.dg/atomic-op-1.c (test for excess errors) I think the sync integer or functions used "or" rather than "ior" in their name. FAIL: gcc.dg/atomic-op-2.c (test for excess errors) FAIL: gcc.dg/atomic-op-3.c (test for excess errors) FAIL: gcc.dg/sync-2.c (test for excess errors) FAIL: gcc.dg/sync-3.c (test for excess errors) FAIL: gcc.dg/simulate-thread/atomic-other-short.c -Os -g (test for excess erro rs) FAIL: gcc.dg/simulate-thread/atomic-other-short.c -O2 -g (test for excess erro rs) FAIL: gcc.dg/simulate-thread/atomic-other-short.c -O1 -g (test for excess erro rs) FAIL: gcc.dg/simulate-thread/atomic-other-short.c -O0 -g (test for excess erro rs) FAIL: gcc.dg/simulate-thread/atomic-other-int.c -Os -g (test for excess errors ) FAIL: gcc.dg/simulate-thread/atomic-other-int.c -O3 -g (test for excess errors ) FAIL: gcc.dg/simulate-thread/atomic-other-int.c -O2 -g (test for excess errors ) FAIL: gcc.dg/simulate-thread/atomic-other-int.c -O1 -g (test for excess errors ) FAIL: gcc.dg/simulate-thread/atomic-other-int.c -O0 -g (test for excess errors ) dave@mx3210:~/gnu/gcc/objdir/gcc$ ./xgcc -B./ -v Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: hppa-linux-gnu Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared --enable-multiarch --with-multiarch-defaults=hppa-linux-gnu --enable-linker-build-id --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu --prefix=/home/dave/opt/gnu/gcc/gcc-4.7.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --disable-comdat --build=hppa-linux-gnu --enable-clocale=gnu --enable-java-gc=boehm --without-cloog --without-ppl --enable-languages=c,c++,objc,fortran,obj-c++,java,ada,lto Thread model: posix gcc version 4.7.0 20111126 (experimental) [trunk revision 181742] (GCC)