This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11841] [3.3 Regression] The code compiled with -funroll-loops crashes


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]