From: Jan Hubicka Date: Fri, 27 Jun 2003 16:37:41 +0000 (+0200) Subject: toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before... X-Git-Tag: releases/gcc-3.4.0~5413 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c20c06c787d16a69ab54e9f3931934942888cb4;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbc113e17bef..eb7aef154f3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka + + * toplev.c (rest_of_decl_compilation): Only varpoolize argument + when called before cgraph_optimize. + 2003-06-27 Zack Weinberg * config/darwin.h, config/elfos.h, config/i960/i960-coff.h diff --git a/gcc/toplev.c b/gcc/toplev.c index 6fd02eb6ad4b..c58404a6ad22 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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);