https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64360
Bug ID: 64360 Summary: libitm.c/stackundo.c fails with -fpic Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libitm Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com /build/gnu/gcc/build-x86_64-linux/gcc/ /export/gnu/import/git/gcc/libitm/testsuite/libitm.c/stackundo.c -B/export/build/gnu/gcc/build-x86_64-linux/x86_64-unknown-linux-gnu/./libitm/ -I/export/build/gnu/gcc/build-x86_64-linux/x86_64-unknown-linux-gnu/./libitm -I/export/gnu/import/git/gcc/libitm/testsuite/.. -fmessage-length=0 -fgnu-tm -O2 -L/export/build/gnu/gcc/build-x86_64-linux/x86_64-unknown-linux-gnu/./libitm/.libs -lm -fpic -o ./stackundo.exe /export/gnu/import/git/gcc/libitm/testsuite/libitm.c/stackundo.c:19:9: error: unsafe function call 'test1' within atomic transaction /export/gnu/import/git/gcc/libitm/testsuite/libitm.c/stackundo.c:19:9: error: unsafe function call 'test1' within atomic transaction FAIL: libitm.c/stackundo.c (test for excess errors) /export/gnu/import/git/gcc/libitm/testsuite/libitm.c/stackundo.c:19:9: error: unsafe function call 'test1' within atomic transaction UNRESOLVED: libitm.c/stackundo.c compilation failed to produce executable Should test1 and test2 be static?