linux-2.3.3 doesn't boot when compiled with egcs-2.93.22

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Sun May 23 19:57:00 GMT 1999


i586, binutils-2.9.1.0.24, glibc-2.1.1pre3

The kernel doesn't initialize the IDE disks and panics because / isn't
mounted. 

The problem is that function drivers/block/ide.c:init_hwif_data is
miscompiled, it gives the value 1 to the noprobe field of the
structure. egcs-1.1.2 gives the correct value 0.

A testcase cut down from the above follows, it seems there is not much fat
left by now... this compiles ide.c (chainsawed to size) with egcs-2.93.22
and 2.91.66 and shows the resulting noprobe values.


More information about the Gcc-bugs mailing list