aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-09-04 10:45:42 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-09-04 08:45:42 +0000
commitb379a5939dfaad14eb2285dfb078251fbcdf9bf3 (patch)
tree0b51c31026a40859305a32c61ab4866cd6f2654f /gcc/toplev.c
parentd18a825116b013ed02847c1a2247fa9cec1364cf (diff)
downloadgcc-b379a5939dfaad14eb2285dfb078251fbcdf9bf3.zip
gcc-b379a5939dfaad14eb2285dfb078251fbcdf9bf3.tar.gz
gcc-b379a5939dfaad14eb2285dfb078251fbcdf9bf3.tar.bz2
toplev.c (wrapup_global_declarations): Fix final pass in unit-at-atime mode.
* toplev.c (wrapup_global_declarations): Fix final pass in unit-at-atime mode. From-SVN: r71052
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index b985385..b7d23b2 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1571,7 +1571,7 @@ wrapup_global_declarations (tree *vec, int len)
if (flag_unit_at_a_time
&& cgraph_varpool_node (decl)->finalized)
needed = 0;
- else if (flag_unit_at_a_time
+ else if ((flag_unit_at_a_time && !cgraph_global_info_ready)
&& (TREE_USED (decl)
|| TREE_USED (DECL_ASSEMBLER_NAME (decl))))
/* needed */;