OSDN Git Service

* toplev.c (wrapup_global_declarations): Fix final pass in
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 08:45:42 +0000 (08:45 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 08:45:42 +0000 (08:45 +0000)
unit-at-atime mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71052 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index f078ad4..31fad7d 100644 (file)
@@ -1,3 +1,8 @@
+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
index b985385..b7d23b2 100644 (file)
@@ -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 */;