diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2007-08-04 00:05:56 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2007-08-03 17:05:56 -0700 |
commit | 2276d5ed3884de91a2f81313f90fbe3e9e1781e7 (patch) | |
tree | 44509ce0a3565ffd22029192c721507adf734681 /gcc/ipa-reference.c | |
parent | f9fc04494477f63b2739ea14f80bb87f4bfd21ce (diff) | |
download | gcc-2276d5ed3884de91a2f81313f90fbe3e9e1781e7.zip gcc-2276d5ed3884de91a2f81313f90fbe3e9e1781e7.tar.gz gcc-2276d5ed3884de91a2f81313f90fbe3e9e1781e7.tar.bz2 |
re PR middle-end/32304 (ICE in set_mem_attributes_minus_bitpos)
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32304
* ipa-reference.c (has_proper_scope_for_analysis): Return false when
the decl's type has TYPE_NEEDS_CONSTRUCTING set.
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32304
* g++.dg/torture/pr32304.C: New testcase.
From-SVN: r127191
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r-- | gcc/ipa-reference.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 5e1a6eb..1a962c5 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -267,6 +267,10 @@ has_proper_scope_for_analysis (tree t) if (DECL_EXTERNAL (t) || TREE_PUBLIC (t)) return false; + /* We cannot touch decls where the type needs constructing. */ + if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (t))) + return false; + /* This is a variable we care about. Check if we have seen it before, and if not add it the set of variables we care about. */ if (!bitmap_bit_p (all_module_statics, DECL_UID (t))) |