OSDN Git Service

* toplev.c (rest_of_decl_compilation): Revert last two changes.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Mar 2002 21:40:38 +0000 (21:40 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Mar 2002 21:40:38 +0000 (21:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50264 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index d82d278..792843c 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-03  Richard Henderson  <rth@redhat.com>
+
+       * toplev.c (rest_of_decl_compilation): Revert last two changes.
+
 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
 
        * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
index 11c5546..5a8c0dd 100644 (file)
@@ -2266,10 +2266,7 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end)
     {
       timevar_push (TV_VARCONST);
 
-      /* If asmspec non-zero, we may be creating a global register variable.
-        If asmspec zero, we may be making sure that ENCODE_SECTION_INFO is
-        up-to-date.  */
-      if (TREE_CODE (decl) != TYPE_DECL && TREE_CODE (decl) != LABEL_DECL)
+      if (asmspec)
         make_decl_rtl (decl, asmspec);
 
       /* Don't output anything when a tentative file-scope definition