aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-09-07 00:23:51 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-09-06 22:23:51 +0000
commit7e668417e948ec56c7ecacdde8651eab9effb4f2 (patch)
treed8d0aab1051d359e60c28ae3e281b8976384cec6 /gcc/toplev.c
parent9778f2f8b539a9229cd205e933d1d20c60f1768e (diff)
downloadgcc-7e668417e948ec56c7ecacdde8651eab9effb4f2.zip
gcc-7e668417e948ec56c7ecacdde8651eab9effb4f2.tar.gz
gcc-7e668417e948ec56c7ecacdde8651eab9effb4f2.tar.bz2
toplev.c (rest_of_decl_compilation): Do not finalize external virables.
* toplev.c (rest_of_decl_compilation): Do not finalize external virables. From-SVN: r71148
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 462704c..92ef835 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1867,7 +1867,7 @@ rest_of_decl_compilation (tree decl,
/* Don't output anything when a tentative file-scope definition
is seen. But at end of compilation, do output code for them. */
- if (at_end || !DECL_DEFER_OUTPUT (decl))
+ if ((at_end || !DECL_DEFER_OUTPUT (decl)) && !DECL_EXTERNAL (decl))
{
if (flag_unit_at_a_time && !cgraph_global_info_ready
&& TREE_CODE (decl) != FUNCTION_DECL && top_level)