diff options
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 7105e59c5ec..377e4353fdb 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -884,6 +884,7 @@ process_function_and_variable_attributes (struct cgraph_node *first, if (lookup_attribute ("used", DECL_ATTRIBUTES (decl))) { mark_decl_referenced (decl); + vnode->force_output = true; if (vnode->finalized) varpool_mark_needed_node (vnode); } |