From: Jan Hubicka Date: Mon, 15 Dec 2014 03:47:18 +0000 (+0100) Subject: * ipa.c (process_references): Fix conditoinal on flag_optimize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1ced6f5e7e78a6818c4820c4a5f103b74112f93;p=gcc.git * ipa.c (process_references): Fix conditoinal on flag_optimize From-SVN: r218730 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 253db82911e..431b2a13537 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-12-14 Jan Hubicka + + * ipa.c (process_references): Fix conditoinal on flag_optimize + 2014-12-14 Jan Hubicka PR ipa/61558 diff --git a/gcc/ipa.c b/gcc/ipa.c index bed20e9d664..ec19d5d8fa6 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",