This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37102] [4.3/4.4 Regression] possible integer codegen bug
- From: "cnstar9988 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2008 13:38:21 -0000
- Subject: [Bug tree-optimization/37102] [4.3/4.4 Regression] possible integer codegen bug
- References: <bug-37102-12544@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from cnstar9988 at gmail dot com 2008-08-26 13:38 -------
gcc 4.3.2 20080826 failed.
----------------------------
#include <stdio.h>
unsigned int g_24;
unsigned int g_37 = 1;
unsigned char g_225;
int main (void)
{
int l_289;
for (l_289 = 1; l_289 < 5; l_289 += 1) {
if (g_225) {
g_24 = g_37;
}
}
g_24 = g_37;
unsigned short context = g_24 << 1;
do {
if (context)
context = (context << 1) ^ 1;
} while (0);
printf ("%d\n", (int)context);
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37102