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]

Re: optimization/8994: [3.2/3.3 regression] ICE with -O -march=pentium4


Hi,

here's a cleaned-up testcase that just ICEs - no warning:

------------------------------snip here-------------------------------
void foo (double d)
{
    union { double d; int i; } u;

    while (1)
    {
        u.d = d;
        if (u.i & 1) return;
    }
}
------------------------------snip here-------------------------------

BTW, if you add a semicolon after "ret:" in the original testcase, the
warning also vanishes.

Regards,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8994



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