diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-10-23 14:26:38 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-10-23 14:26:38 -0400 |
commit | 779c0390e3b57d1eebd41bbfe43d1f329c91de6c (patch) | |
tree | 22cbc727abc54078e01845f07ce7a46aa46e74b8 /gcc/fortran/options.cc | |
parent | 9ffcf1f193b477f417a4c1960cd32696a23b99b4 (diff) | |
download | gcc-779c0390e3b57d1eebd41bbfe43d1f329c91de6c.zip gcc-779c0390e3b57d1eebd41bbfe43d1f329c91de6c.tar.gz gcc-779c0390e3b57d1eebd41bbfe43d1f329c91de6c.tar.bz2 |
jit: reset state in varasm.cc [PR117275]
PR jit/117275 reports various jit test failures seen on
powerpc64le-unknown-linux-gnu due to hitting this assertion
in varasm.cc on the 2nd compilation in 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
We're not properly resetting state in varasm.cc after a compile
for libgccjit.
Fixed thusly.
gcc/ChangeLog:
PR jit/117275
* toplev.cc (toplev::finalize): Call varasm_cc_finalize.
* varasm.cc (varasm_cc_finalize): New.
* varasm.h (varasm_cc_finalize): New decl.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/fortran/options.cc')
0 files changed, 0 insertions, 0 deletions