summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-08 19:13:35 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-08 19:13:35 +0000
commite9f08e8237de6bd0d8e86beb76a722bde1ad5f45 (patch)
treed6fa6db393ca0978490c8abd03a55eb4749830d9 /gcc/cgraphunit.c
parent050ecc41f80af0d1719bab230a2afc85f95bb236 (diff)
downloadgcc-e9f08e8237de6bd0d8e86beb76a722bde1ad5f45.tar.gz
PR 17982
* varasm.c (pending_assemble_externals): New static. (assemble_external_real): Meat of assemble_external split out to this new function. (process_pending_assemble_externals): New function. (assemble_external): Use gcc_assert. If flag_unit_at_a_time is true and the basic test passes, merely cons the decl onto the pending list to be handled later. * tree.h: Declare process_pending_assemble_externals. * cgraphunit.c (cgraph_optimize): Call it. * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91914 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 43564b0f53b..22b33816caa 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1750,6 +1750,9 @@ cgraph_optimize (void)
#endif
if (!flag_unit_at_a_time)
return;
+
+ process_pending_assemble_externals ();
+
timevar_push (TV_CGRAPHOPT);
if (!quiet_flag)
fprintf (stderr, "Performing intraprocedural optimizations\n");