Re: Bug#254626: gcc-3.3: wrong optimization on sparc32 when building linux kernel
On Sat, Jun 19, 2004 at 12:27:49PM +0200, Matthias Klose wrote:
> Do you know earlier gcc versions not showing the miscompilation?
> Please can you recheck with gcc-3.4 (found in the experimental
> distribution, or http://http.us.debian.org/debian/pool/main/g/gcc-3.4/)
>
> Thanks, Matthias
These are all the versions I tried:
ii gcc-2.95 2.95.4-22 The GNU C compiler
ii gcc-3.2 3.2.3-9 The GNU C compiler
ii gcc-3.3 3.3.4-1 The GNU C compiler
ii gcc-3.4 3.4.0-2 The GNU C compiler
Out of these, only the kernel compiled with gcc-2.95 boots when using the -Os
option.
gcc-3.2 and gcc-3.3 work ok when using the -O2 option. I have not tried
that on gcc-3.4, but I expect that to work as far as this issue is concerned.
When I get some time I'll try turning on the flags one by one that -Os
turns off, e.g. -Os -falign-functions. Hope that will work as expected and
narrow down the problem.
Thanks,
Martin
Reply to: