toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl for types or labels.
authorRichard Henderson <rth@redhat.com>
Sun, 3 Mar 2002 09:11:38 +0000 (01:11 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 3 Mar 2002 09:11:38 +0000 (01:11 -0800)
        * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
        for types or labels.

From-SVN: r50253

gcc/ChangeLog
gcc/toplev.c

index 2ea07f371b4c320150533b1c885623f89bda7ac7..f425362629b563ddd8ee6586379c33e7d5912968 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-03  Richard Henderson  <rth@redhat.com>
+
+       * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
+       for types or labels.
+
 2002-03-03  Richard Henderson  <rth@redhat.com>
 
        * c-decl.c (start_decl): Initialized variables are not common.
index 1767fb405597e140602efddd3e74bc61ba835270..2d72c3fc74dd3f997ddd42a060e80dfc3bbd6697 100644 (file)
@@ -2277,7 +2277,8 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end)
       /* 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.  */
-      make_decl_rtl (decl, asmspec);
+      if (TREE_CODE (decl) != TYPE_DECL && TREE_CODE (decl) != LABEL_DECL)
+        make_decl_rtl (decl, asmspec);
 
       /* Don't output anything when a tentative file-scope definition
         is seen.  But at end of compilation, do output code for them.  */