summaryrefslogtreecommitdiff
path: root/gcc/c-objc-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r--gcc/c-objc-common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c
index c91e635b410..a84ddc8fd70 100644
--- a/gcc/c-objc-common.c
+++ b/gcc/c-objc-common.c
@@ -361,7 +361,13 @@ c_objc_common_finish_file ()
if (pch_file)
c_common_write_pch ();
- expand_deferred_fns ();
+ if (flag_unit_at_a_time)
+ {
+ cgraph_finalize_compilation_unit ();
+ cgraph_optimize ();
+ }
+ else
+ expand_deferred_fns ();
if (static_ctors)
{