toplev.c (rest_of_decl_compilation): Do not finalize external virables.
authorJan Hubicka <jh@suse.cz>
Sat, 6 Sep 2003 22:23:51 +0000 (00:23 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 6 Sep 2003 22:23:51 +0000 (22:23 +0000)
* toplev.c  (rest_of_decl_compilation):  Do not finalize external
virables.

From-SVN: r71148

gcc/ChangeLog
gcc/toplev.c

index ef3ac7baceb720c49e164d5077be700abd450383..610bbb0a81d1c4b46ad77c891a43977a6d1aa321 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep  7 00:22:22 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * toplev.c  (rest_of_decl_compilation):  Do not finalize external
+       virables. 
+
 Sat Sep  6 23:49:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
 
        PR target/12070
index 462704c8fa3c0f55862767c1a6129d352793d463..92ef8358d8afb4ee3ba1c8af2cce823e52936440 100644 (file)
@@ -1867,7 +1867,7 @@ rest_of_decl_compilation (tree decl,
 
       /* Don't output anything when a tentative file-scope definition
         is seen.  But at end of compilation, do output code for them.  */
-      if (at_end || !DECL_DEFER_OUTPUT (decl))
+      if ((at_end || !DECL_DEFER_OUTPUT (decl)) && !DECL_EXTERNAL (decl))
        {
          if (flag_unit_at_a_time && !cgraph_global_info_ready
              && TREE_CODE (decl) != FUNCTION_DECL && top_level)