[Bug tree-optimization/49218] Incorrect optimization of a 'for' loop creates an infinite loop
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 30 08:36:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49218
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-30 08:31:24 UTC ---
Can be reproduced on x86_64-linux too, with:
#ifdef __x86_64__
typedef __int128 L;
#else
typedef long long L;
#endif
float f;
int
main ()
{
L i = f;
if (i <= 10)
do
{
++i;
asm ("");
}
while (i != 11);
return 0;
}
at -O2.
More information about the Gcc-bugs
mailing list