aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index bed20e9..ec19d5d 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -128,8 +128,10 @@ process_references (symtab_node *snode,
if (node->definition && !node->in_other_partition
&& ((!DECL_EXTERNAL (node->decl) || node->alias)
|| (((before_inlining_p
- && (TREE_CODE (node->decl) != FUNCTION_DECL
- || opt_for_fn (body->decl, optimize)
+ && ((TREE_CODE (node->decl) != FUNCTION_DECL
+ && optimize)
+ || (TREE_CODE (node->decl) == FUNCTION_DECL
+ && opt_for_fn (body->decl, optimize))
|| (symtab->state < IPA_SSA
&& lookup_attribute
("always_inline",