[Bug c/44828] possible integer wrong code bug
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jul 6 09:25:00 GMT 2010
------- Comment #1 from jakub at gcc dot gnu dot org 2010-07-06 09:25 -------
Shorter testcase:
extern void abort (void);
static char
foo (char si1, char si2)
{
return si1 * si2;
}
int a = 0x105F61CA;
int
main (void)
{
int b = 0x0332F5C8;
if (foo (b, a) > 0)
abort ();
return 0;
}
Works with -O2 -fwrapv.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44828
More information about the Gcc-bugs
mailing list