This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11841] [3.3 Regression] The code compiled with -funroll-loops crashes
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2004 23:13:55 -0000
- Subject: [Bug optimization/11841] [3.3 Regression] The code compiled with -funroll-loops crashes
- References: <20030807012210.11841.panov@canopus.iacp.dvo.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-03-30 23:13 -------
My previous testcase only fails with 3.3.x for x>=2.
The following testcase fails (segfaults) with all versions x>=0:
===========================================
int main (int argc, char *argv[])
{
double d[6];
int i, j, k=1;
while (k < argc) ++k;
for (i=0; i<4; ++i)
for (j=0; j<3; ++j)
d[i+j] = 0;
return (int)&i;
}
===========================================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11841