Deadly optimization bug (all gcc versions!)
Jerry Quinn
jquinn@nortelnetworks.com
Tue Aug 31 23:20:00 GMT 1999
>> "David" == David Edelsohn <dje@watson.ibm.com> writes:
>>>>>> veksler writes:
veksler> The bug shows itself on gcc-2.7.0 gcc-2.7.2.1, egcs-1.0.1,
veksler> egcs-1.1.2, gcc-2.95. On AIX-4.1, Linux-x86 (RH4.2 and RH6.0).
David> This means that you have seen the bug in both PowerPC and
David> IA-32 code generation? I definitely see it in PowerPC. A whole group
David> of instructions disappear between flow and combine. Also, -O3 with
David> inlining seems to produce correct results. Maybe combine is trying
David> some alternate instructions, failing, and then not properly restoring
David> the instructions?
I just tried this on HPUX 10.20 and get the same behavior. -O gets 0,0,0 and
no flags, -g, and -O3 -finline all get 0,1,1
--
Jerry Quinn Tel: (514) 761-8737
jquinn@nortelnetworks.com Fax: (514) 761-8505
Speech Recognition Research
More information about the Gcc
mailing list