This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49218] Incorrect optimization of a 'for' loop creates an infinite loop
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 May 2011 08:32:12 +0000
- Subject: [Bug tree-optimization/49218] Incorrect optimization of a 'for' loop creates an infinite loop
- Auto-submitted: auto-generated
- References: <bug-49218-4@http.gcc.gnu.org/bugzilla/>
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.