On 07.15, Gwenole Beauchesne wrote:
> Hi,
> 
> > More info: 2.4.22-pre5 hangs the same, but it works compiled just
> > at -O1 optimization level. So it all smells to a bug in current gcc
> > optmizer, -O2 breaks and -O1 works.
> 
> Try to build with -fno-vrp and/or -fno-strict-aliasing.
> 

After some binary search and a 'couple' kernel builds, I narrowed the
problem to mm/memory.c. With that file built at -O1:

CFLAGS_memory.o = -O1

the kernel boots, starts /sbin/init and looks like working normally
(2.4.22-pre5).

Anybody can see what is miscompiled with an assembler listing ?
Any #pragma to switch optmizations on the half of a file or for
a function ?

TIA


-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre5 (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-0.2mdk))

Reply via email to