re PR ipa/61823 (gcc.dg/torture/pr43879_[12].c FAILs with -fno-inline)
authorRichard Biener <rguenther@suse.de>
Thu, 24 Jul 2014 12:01:31 +0000 (12:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 24 Jul 2014 12:01:31 +0000 (12:01 +0000)
2014-07-24  Richard Biener  <rguenther@suse.de>

PR ipa/61823
* tree-ssa-structalias.c (create_variable_info_for_1):
Use varpool_get_constructor.
(create_variable_info_for): Likewise.

* gcc.dg/torture/pr43879_1.c: Add -fno-inline.

From-SVN: r212980

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr43879_1.c
gcc/tree-ssa-structalias.c

index b174764..f36f245 100644 (file)
@@ -1,3 +1,10 @@
+2014-07-24  Richard Biener  <rguenther@suse.de>
+
+       PR ipa/61823
+       * tree-ssa-structalias.c (create_variable_info_for_1):
+       Use varpool_get_constructor.
+       (create_variable_info_for): Likewise.
+
 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
index 85df44f..ae5dd74 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-24  Richard Biener  <rguenther@suse.de>
+
+       PR ipa/61823
+       * gcc.dg/torture/pr43879_1.c: Add -fno-inline.
+
 2014-07-24  Andreas Schwab  <schwab@suse.de>
 
        * lib/target-supports.exp (check_effective_target_arm_nothumb):
index 151a184..9c9e2ca 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-fipa-pta" } */
+/* { dg-options "-fipa-pta -fno-inline" } */
 /* { dg-additional-sources "pr43879_2.c" } */
 
 void bar(int c)
index 31dbec0..662fa24 100644 (file)
@@ -5671,7 +5671,7 @@ create_variable_info_for_1 (tree decl, const char *name)
         in IPA mode.  Else we'd have to parse arbitrary initializers.  */
       && !(in_ipa_mode
           && is_global_var (decl)
-          && DECL_INITIAL (decl)))
+          && varpool_get_constructor (varpool_get_node (decl))))
     {
       fieldoff_s *fo = NULL;
       bool notokay = false;
@@ -5797,13 +5797,13 @@ create_variable_info_for (tree decl, const char *name)
 
          /* If this is a global variable with an initializer and we are in
             IPA mode generate constraints for it.  */
-         if (DECL_INITIAL (decl)
+         if (varpool_get_constructor (vnode)
              && vnode->definition)
            {
              auto_vec<ce_s> rhsc;
              struct constraint_expr lhs, *rhsp;
              unsigned i;
-             get_constraint_for_rhs (DECL_INITIAL (decl), &rhsc);
+             get_constraint_for_rhs (varpool_get_constructor (vnode), &rhsc);
              lhs.var = vi->id;
              lhs.offset = 0;
              lhs.type = SCALAR;