diff options
author | Jan Hubicka <jh@suse.cz> | 2003-06-27 18:37:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-06-27 16:37:41 +0000 |
commit | 5c20c06c787d16a69ab54e9f3931934942888cb4 (patch) | |
tree | 886d308c1f056df972f84448fa03f6c373cbb75f /gcc/toplev.c | |
parent | 3a73bcc6870738923820d08fbcd62774d77b4936 (diff) | |
download | gcc-5c20c06c787d16a69ab54e9f3931934942888cb4.zip gcc-5c20c06c787d16a69ab54e9f3931934942888cb4.tar.gz gcc-5c20c06c787d16a69ab54e9f3931934942888cb4.tar.bz2 |
toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before cgraph_optimize.
* toplev.c (rest_of_decl_compilation): Only varpoolize argument
when called before cgraph_optimize.
From-SVN: r68583
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 6fd02eb..c58404a 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2190,8 +2190,8 @@ rest_of_decl_compilation (tree decl, is seen. But at end of compilation, do output code for them. */ if (at_end || !DECL_DEFER_OUTPUT (decl)) { - if (flag_unit_at_a_time && TREE_CODE (decl) != FUNCTION_DECL - && top_level) + if (flag_unit_at_a_time && !cgraph_global_info_ready + && TREE_CODE (decl) != FUNCTION_DECL && top_level) cgraph_varpool_finalize_decl (decl); else assemble_variable (decl, top_level, at_end, 0); |