diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef3ac7baceb..610bbb0a81d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 7 00:22:22 CEST 2003 Jan Hubicka + + * toplev.c (rest_of_decl_compilation): Do not finalize external + virables. + Sat Sep 6 23:49:13 CEST 2003 Jan Hubicka PR target/12070 diff --git a/gcc/toplev.c b/gcc/toplev.c index 462704c8fa3..92ef8358d8a 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)