diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-11-12 16:37:52 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-11-12 16:37:52 +0000 |
commit | 0a2695dba70df002f4ed8c0bad2a7c3403dd43df (patch) | |
tree | 517e3e9fda4562c722cfb2ed96466fb15762390e /gcc/toplev.c | |
parent | 896b242cc52cc8bdeca781ba5b783b701e090020 (diff) | |
download | gcc-0a2695dba70df002f4ed8c0bad2a7c3403dd43df.zip gcc-0a2695dba70df002f4ed8c0bad2a7c3403dd43df.tar.gz gcc-0a2695dba70df002f4ed8c0bad2a7c3403dd43df.tar.bz2 |
re PR c++/18416 (ICE in import_export_decl)
PR c++/18416
* passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
when deciding whether to pass a variable to
cgraph_varpool_finalize_decl or assemble_variable.
* toplev.c (check_global_declarations): Do not clear DECL_RTL.
PR c++/18416
* g++.dg/init/global1.C: New test.
From-SVN: r90532
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 4ce593a..29ae065 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -819,13 +819,6 @@ check_global_declarations (tree *vec, int len) { decl = vec[i]; - if (TREE_CODE (decl) == VAR_DECL && TREE_STATIC (decl) - && ! TREE_ASM_WRITTEN (decl)) - /* Cancel the RTL for this decl so that, if debugging info - output for global variables is still to come, - this one will be omitted. */ - SET_DECL_RTL (decl, NULL_RTX); - /* Warn about any function declared static but not defined. We don't warn about variables, |