aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 66a57db..a5bb317 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6413,7 +6413,7 @@ finish_function (nested, can_defer_p)
free_after_compilation (cfun);
cfun = NULL;
- if (flag_unit_at_a_time)
+ if (flag_unit_at_a_time && can_defer_p)
{
cgraph_finalize_function (fndecl, DECL_SAVED_TREE (fndecl));
current_function_decl = NULL;