[Bug tree-optimization/71691] [6/7 Regression] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu (Floating point exception)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 4 10:22:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71691
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That said,
char b;
short f;
unsigned e;
int g = 20;
void
foo ()
{
int l, h;
for (l = 0; l <= 7; l++)
{
int j = 38;
if (g)
h = 0;
for (; h <= 7; h++)
{
int i, k = b % (j % 4);
g = f;
for (;;)
{
j = 6 || b;
if (e)
{
for (; j; --j)
if (k)
__builtin_printf ("%d", 9);
if (i)
__builtin_printf ("%d", j);
}
if (l)
continue;
break;
}
i = f || b;
}
}
}
int
main ()
{
foo ();
return 0;
}
(just moving the int h; declaration before the outermost loop) is IMHO already
valid, and still SIGFPEs.
More information about the Gcc-bugs
mailing list