On 04/06/2010 03:59 PM, Andreas Schwab wrote:
"Dr. Werner Fink"<wer...@suse.de> writes:On x86_64 the gdb shows: Program received signal SIGFPE, Arithmetic exception. 0x0000000000462cd5 in exp2 () at expr.c:761 761 val1 /= val2; (gdb) print val1 $1 = -9223372036854775808 (gdb) print val2 $2 = -1 which is strange.Not at all. Overflow invokes undefined behaviour. Andreas.
But why there is no overflow on 32bit system? RR