2003-07-13 23:31:28

by J.A. Magallon

[permalink] [raw]
Subject: gcc-3.3.1-hammer vs current pre

Hi all...

One good and one bad news...

The good:
Current 22-pre5 builds at -O1 level. I always thought it was mandatory to
build at -O2...At least it can be useful to detect optimizer bugs...

And the bad. The current gcc in mandrakke cooker miscompiles the kernel.
Current 2.4.22-pre5 (plain, even a comma touched) works if built with -O1
and breaks with -O2 (does not pass init launch). As it is based on
the hammer branch from SuSE, I think this also affects SuSE developers,
if not corrected in their tree yet.

Is there any way to set compile flags for _subsystems_ ? To start
a search on what breaks at -O2.

[OT] (off-topic, not Operacion Triunfo -bleh- ...)
BTW, is anybody from Mandrake reading this ? The cooker list looks dead
since a week or so. If someone reads this, plz mail me in private.

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-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))


2003-07-14 00:28:49

by Adrian Bunk

[permalink] [raw]
Subject: Re: gcc-3.3.1-hammer vs current pre

On Mon, Jul 14, 2003 at 01:40:24AM +0200, J.A. Magallon wrote:

>...
> Is there any way to set compile flags for _subsystems_ ? To start
> a search on what breaks at -O2.
>...

It's only possible on a per-directory basis (excluding subdirectories).

Read section 7.6 in Documentation/kbuild/makefiles.txt .

drivers/acpi/Makefile in 2.4.22-pre contains an example (the ACPI code
is compiled with -Os).

> TIA

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed