summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2004-12-18 06:38:24 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-12-18 06:38:24 +0000
commitbc6d19abb1155efe6938d3e96c409f4c10269bee (patch)
tree913e40d7ad0aac59ca4a237a43977a83cab30316 /gcc/toplev.c
parenta1d601461e21c1c142660661fe629fcf6b69124b (diff)
downloadgcc-bc6d19abb1155efe6938d3e96c409f4c10269bee.tar.gz
re PR middle-end/18897 (/usr/ccs/bin/ld: Unsatisfied symbols: putchar (first referenced in build/gengenrtl.o) (data))
PR 18897 * toplev.c (compile_file): Call process_pending_assemble_externals just before targetm.asm_out.file_end. From-SVN: r92347
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index edfc55219b1..5a5702f0de2 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1034,6 +1034,11 @@ compile_file (void)
dw2_output_indirect_constants ();
+ /* Flush any pending external directives. cgraph did this for
+ assemble_external calls from the front end, but the RTL
+ expander can also generate them. */
+ process_pending_assemble_externals ();
+
/* Attach a special .ident directive to the end of the file to identify
the version of GCC which compiled this code. The format of the .ident
string is patterned after the ones produced by native SVR4 compilers. */