This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47141] [4.6 Regression] segfault
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 1 Jan 2011 13:36:48 +0000
- Subject: [Bug tree-optimization/47141] [4.6 Regression] segfault
- Auto-submitted: auto-generated
- References: <bug-47141-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47141
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code
Last reconfirmed| |2011.01.01 13:36:34
Component|c |tree-optimization
CC| |hubicka at gcc dot gnu.org,
| |jakub at gcc dot gnu.org
Ever Confirmed|0 |1
Summary|segfault |[4.6 Regression] segfault
Target Milestone|--- |4.6.0
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-01 13:36:34 UTC ---
Caused by partial inlining. Smaller testcase:
int
foo (__UINTPTR_TYPE__ x)
{
int a = 6;
int *b = &a;
if (x)
for (a = 0; a; a++)
;
return a;
}
void
bar (void)
{
foo ((__UINTPTR_TYPE__) foo);
}