diff options
author | Richard Henderson <rth@redhat.com> | 2002-03-03 01:11:38 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-03-03 01:11:38 -0800 |
commit | 41c78c8833deda8c42cd55fa514639a3d700b2b6 (patch) | |
tree | 66e71996ccaa2d89e93ae2e0788a509a84563819 /gcc | |
parent | 9e9b71e6b4d08d8530227773db86c05e79d93024 (diff) | |
download | gcc-41c78c8833deda8c42cd55fa514639a3d700b2b6.zip gcc-41c78c8833deda8c42cd55fa514639a3d700b2b6.tar.gz gcc-41c78c8833deda8c42cd55fa514639a3d700b2b6.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ea07f3..f425362 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. 2002-03-02 Per Bothner <per@bothner.com> 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. */ |