aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 988e2c670e4..b6afc47f30c 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2574,6 +2574,10 @@ compile_file (name)
}
}
+ /* Write out any pending weak symbol declarations. */
+
+ weak_finish ();
+
/* Do dbx symbols */
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
if (write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)