* ipa.c (process_references): Fix conditoinal on flag_optimize
authorJan Hubicka <hubicka@ucw.cz>
Mon, 15 Dec 2014 03:47:18 +0000 (04:47 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 03:47:18 +0000 (03:47 +0000)
From-SVN: r218730

gcc/ChangeLog
gcc/ipa.c

index 253db82911e00b7f7d527dc53bb4ffb627d371f4..431b2a13537ff26373af496c57381bff388b9f9f 100644 (file)
@@ -1,3 +1,7 @@
+2014-12-14  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa.c (process_references): Fix conditoinal on flag_optimize
+
 2014-12-14  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/61558
index bed20e9d664cfb885517fd2a696009d7d735f0c6..ec19d5d8fa683d758e52cef61258b134fe829c58 100644 (file)
--- 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",