Commit 5c20c06c by Jan Hubicka Committed by Jan Hubicka

toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before cgraph_optimize.

	* toplev.c (rest_of_decl_compilation):  Only varpoolize argument
	when called before cgraph_optimize.

From-SVN: r68583
parent 3a73bcc6
Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
* toplev.c (rest_of_decl_compilation): Only varpoolize argument
when called before cgraph_optimize.
2003-06-27 Zack Weinberg <zack@codesourcery.com>
* config/darwin.h, config/elfos.h, config/i960/i960-coff.h
......
......@@ -2190,8 +2190,8 @@ rest_of_decl_compilation (tree decl,
is seen. But at end of compilation, do output code for them. */
if (at_end || !DECL_DEFER_OUTPUT (decl))
{
if (flag_unit_at_a_time && TREE_CODE (decl) != FUNCTION_DECL
&& top_level)
if (flag_unit_at_a_time && !cgraph_global_info_ready
&& TREE_CODE (decl) != FUNCTION_DECL && top_level)
cgraph_varpool_finalize_decl (decl);
else
assemble_variable (decl, top_level, at_end, 0);
......
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