https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77355
Bug ID: 77355 Summary: FAIL: jit.dg/test-threads.c: error: static declaration of 'dejagnu_pass' follows non-static declaration Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- I'm seeing the following compilation errors on recent trunk of GCC 7.0 while compiling the jit.dg/test-threads.c file: $ sed -n "/spawn .*test-threads\.c/,/FAIL: jit.dg\/test-threads.c/p" /build/gcc-49905/gcc/testsuite/jit/jit.log spawn -ignore SIGHUP /home/msebor/build/gcc-49905/gcc/xgcc -B/home/msebor/build/gcc-49905/gcc/ /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c -fno-diagnostics-show-caret -fdiagnostics-color=never -I/src/gcc/49905/gcc/testsuite/../jit -lgccjit -g -Wall -Werror -Wl,--export-dynamic -lpthread -fgnu89-inline -lm -o test-threads.c.exe In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:25:14: error: static declaration of 'dejagnu_pass' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:23:6: note: previous declaration of 'dejagnu_pass' was here In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:26:14: error: static declaration of 'dejagnu_fail' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:24:6: note: previous declaration of 'dejagnu_fail' was here In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:27:14: error: static declaration of 'dejagnu_note' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:25:6: note: previous declaration of 'dejagnu_note' was here compiler exited with status 1 output is: In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:25:14: error: static declaration of 'dejagnu_pass' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:23:6: note: previous declaration of 'dejagnu_pass' was here In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:26:14: error: static declaration of 'dejagnu_fail' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:24:6: note: previous declaration of 'dejagnu_fail' was here In file included from /src/gcc/49905/gcc/testsuite/jit.dg/test-accessing-struct.c:6:0, from /src/gcc/49905/gcc/testsuite/jit.dg/all-non-failing-tests.h:14, from /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:82: /src/gcc/49905/gcc/testsuite/jit.dg/harness.h:27:14: error: static declaration of 'dejagnu_note' follows non-static declaration /src/gcc/49905/gcc/testsuite/jit.dg/test-threads.c:25:6: note: previous declaration of 'dejagnu_note' was here FAIL: jit.dg/test-threads.c, initial compilation