optimizer bug, latest version of egcs ( 0 && 0 => 1 )

Dirk Grunwald grunwald@pa.dec.com
Wed Mar 31 23:54:00 GMT 1999


>>>>> "DW" == Deborah Wallach <kerr@pa.dec.com> writes:
DW> teeny: gcc -o foo foo.c
DW> teeny: ./foo
DW> Expect 65535, 0, 0  ->  65535 0 0


DW> When you compile the program with optimization, output is different:

DW> teeny: gcc -o foo -O foo.c
DW> teeny: ./foo
DW> Expect 65535, 0, 0  ->  65535 0 1
--

An important thing to note in this bug report is that if you change
the contsant to 65534 (or most anything else), the bug goes away. So
it's likely a < vs. a <= in a size/cast specification.



More information about the Gcc-bugs mailing list