diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 89fdf3d..38c1581 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1913,9 +1913,9 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype) /* If we changed a function from DECL_EXTERNAL to !DECL_EXTERNAL, and the definition is coming from the old version, cgraph needs to be called again. */ - if (extern_changed && !new_is_definition + if (extern_changed && !new_is_definition && TREE_CODE (olddecl) == FUNCTION_DECL && DECL_INITIAL (olddecl)) - cgraph_finalize_function (olddecl, false); + cgraph_mark_if_needed (olddecl); } /* Handle when a new declaration NEWDECL has the same name as an old |