This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30286] New: [4.1 Regression] Segfault with -O2 -ftrapv
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2006 04:39:56 -0000
- Subject: [Bug middle-end/30286] New: [4.1 Regression] Segfault with -O2 -ftrapv
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
struct free_block {
struct free_block *next;
};
struct mm {
struct free_block *free_arr[25];
};
void get_exact(int i, struct mm *mm, struct free_block *p)
{
int j;
for (j=14; j>i; j--)
mm->free_arr[j] = p->next;
}
--
Summary: [4.1 Regression] Segfault with -O2 -ftrapv
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30286