https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117275
Bug ID: 117275
Summary: test-functions.c.exe and test-tls.c.exe FAIL on
ppc64le with an assertion failure
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: jit
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dmalcolm at gcc dot gnu.org
Target Milestone: ---
Seen on cfarm120:
Within the jit testsuite, test-functions.c and test-tls.c are both failing this
assertion on the 2nd compilation within a process:
#2 0x00007ffff63e67d0 in assemble_external_libcall (fun=0x7ffff2a4b1d8)
at ../../src/gcc/varasm.cc:2650
2650 gcc_assert (!pending_assemble_externals_processed);
(gdb) p pending_assemble_externals_processed
$1 = true
Presumably happens on any target which defines ASM_OUTPUT_EXTERNAL which uses
an external libcall.
Looks like we need to purge some state in varasm.cc in toplev::finalize; I'm
working on a fix.