Commit b379a593 by Jan Hubicka Committed by Jan Hubicka

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
parent d18a8251
Thu Sep 4 10:43:24 CEST 2003 Jan Hubicka <jh@suse.cz>
* toplev.c (wrapup_global_declarations): Fix final pass in
unit-at-atime mode.
2003-09-04 Mark Mitchell <mark@codesourcery.com>
* doc/extend.texi: Document removal of cast-as-lvalue extension in
......
......@@ -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 */;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment