]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before...
authorJan Hubicka <jh@suse.cz>
Fri, 27 Jun 2003 16:37:41 +0000 (18:37 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 27 Jun 2003 16:37:41 +0000 (16:37 +0000)
* toplev.c (rest_of_decl_compilation):  Only varpoolize argument
when called before cgraph_optimize.

From-SVN: r68583

gcc/ChangeLog
gcc/toplev.c

index fbc113e17befb67ff6ea70d583527bdb08a2a572..eb7aef154f3d1ccf6738cdfc8fde9c1cf4902616 100644 (file)
@@ -1,3 +1,8 @@
+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
index 6fd02eb6ad4b00fd0c9ea82f58ca47c30dc7eac3..c58404a6ad2240ca494b7553446cd8f892f1437c 100644 (file)
@@ -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);