From bc6d19abb1155efe6938d3e96c409f4c10269bee Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sat, 18 Dec 2004 06:38:24 +0000 Subject: 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 --- gcc/toplev.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index edfc552..5a5702f 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. */ -- cgit v1.1