diff options
author | Richard Biener <rguenther@suse.de> | 2014-07-24 12:01:31 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-07-24 12:01:31 +0000 |
commit | 785129aa1660f4210ff4c58dfb1df3a4506aa6d4 (patch) | |
tree | e6e7fc2e41654412dd63c27c2a029de05556c32d /gcc/tree-ssa-structalias.c | |
parent | b7249d318f8e25b6dfe43672a0b28385eb2847c3 (diff) | |
download | gcc-785129aa1660f4210ff4c58dfb1df3a4506aa6d4.zip gcc-785129aa1660f4210ff4c58dfb1df3a4506aa6d4.tar.gz gcc-785129aa1660f4210ff4c58dfb1df3a4506aa6d4.tar.bz2 |
re PR ipa/61823 (gcc.dg/torture/pr43879_[12].c FAILs with -fno-inline)
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
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 31dbec0..662fa24 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -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; |