Skip to content

Commit 801fefd

Browse files
committed
libgccjit: Clear pending_assemble_externals_processed
1 parent 5fbfdd4 commit 801fefd

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

gcc/toplev.cc

+1
Original file line numberDiff line numberDiff line change
@@ -2373,6 +2373,7 @@ toplev::finalize (void)
23732373
ira_costs_cc_finalize ();
23742374
tree_cc_finalize ();
23752375
reginfo_cc_finalize ();
2376+
varasm_cc_finalize ();
23762377

23772378
/* save_decoded_options uses opts_obstack, so these must
23782379
be cleaned up together. */

gcc/varasm.cc

+8
Original file line numberDiff line numberDiff line change
@@ -8661,4 +8661,12 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED)
86618661
switch_to_comdat_section(sect, DECL_NAME (decl));
86628662
}
86638663

8664+
void
8665+
varasm_cc_finalize (void)
8666+
{
8667+
#ifdef ASM_OUTPUT_EXTERNAL
8668+
pending_assemble_externals_processed = false;
8669+
#endif
8670+
}
8671+
86648672
#include "gt-varasm.h"

gcc/varasm.h

+2
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,6 @@ extern rtx assemble_trampoline_template (void);
8181

8282
extern void switch_to_comdat_section (section *, tree);
8383

84+
extern void varasm_cc_finalize (void);
85+
8486
#endif // GCC_VARASM_H

0 commit comments

Comments
 (0)