This is the mail archive of the gcc@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]

Re: release status and optimization/8334


> It also worked on 20021002, and it also works for me on 20021030.  Can
> you still reproduce this, Joe?

In my reply to HJ I said I'd spotted it in 20021024, it was actually
20021025.  However, it is gone in 20021031.  So I'll close it.  However,
it seems wise to have a regression test.

Would someone with appropriate write permission please create a regression
test with the following code?  We're just testing for successful
compilation (though the test could be extended to verify that the correct
results are computed).

----------------------------------------
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* origin: test case for PR 8334, from kargl@apl.washington.edu */

void ice(int m, int n, double *f) {
    int i, j, k;

    k = 1;  /* ICE */

    for (j = 0; j < n; j++) {
        for (i = k; i < m; i++) {
            f[i] = (double) (i * j);
            f[i + j] = (double) ((i + 1) * j);
        }
    }
}
----------------------------------------


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