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
This commit is contained in:
parent
f9fc044944
commit
2276d5ed38
@ -1,3 +1,9 @@
|
||||
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/32935
|
||||
|
@ -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)))
|
||||
|
@ -1,3 +1,8 @@
|
||||
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
PR middle-end/32304
|
||||
* g++.dg/torture/pr32304.C: New testcase.
|
||||
|
||||
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
PR middle-end/32935
|
||||
|
9
gcc/testsuite/g++.dg/torture/pr32304.C
Normal file
9
gcc/testsuite/g++.dg/torture/pr32304.C
Normal file
@ -0,0 +1,9 @@
|
||||
// { dg-do compile }
|
||||
|
||||
struct S {
|
||||
S() {}
|
||||
};
|
||||
S f() {
|
||||
static S s;
|
||||
return s;
|
||||
}
|
Loading…
Reference in New Issue
Block a user