ARM compiler generates incorrect code building chill.
Richard Earnshaw
rearnsha@arm.com
Fri Apr 30 23:15:00 GMT 1999
At 08:53 29/04/99 -0400, Scott Bambrough wrote:
>Philip Blundell wrote:
>>
>> >The attached files files come from building gcc/ch/lex.c in the egcs
source.
>> >They will not compile correctly using -O2. The compiler is generating
code
>> >similar to the following:
>>
>> What version of GCC and options are you using? The .i file you sent seems
>> to compile with no problems on my machine.
>>
>> $ gcc -v
>> Reading specs from
/usr/local/lib/gcc-lib/armv4l-unknown-linux-gnu/egcs-2.93.19/specs
>> gcc version egcs-2.93.19 19990419 (gcc2 ss-980929 experimental)
>> $ gcc -c -O2 lex.i
>> $
>>
>> p.
>
>$gcc -v
>Reading specs from /usr/lib/gcc-lib/armv4l-redhat-linux/egcs-2.91.60/specs
>gcc version egcs-2.91.60 19990113/philb (egcs-1.1.1 release)
>
This was probably broken in 1.1.1. I can't remember (and I can't check at
the moment) if the fix was propagated to the 1.1.2 release (though I think
it has been fixed in the trunk).
Richard.
More information about the Gcc-bugs
mailing list