From 41c78c8833deda8c42cd55fa514639a3d700b2b6 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 3 Mar 2002 01:11:38 -0800 Subject: toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl for types or labels. * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl for types or labels. From-SVN: r50253 --- gcc/toplev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 1767fb4..2d72c3f 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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. */ -- cgit v1.1