Skip to contentSkip to conversation

gcc-3.3.1-hammer vs current pre

DISCUSSION J.A. Magallon 2 participants 2 messages Jul 13, 2003 – Jul 14, 2003

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
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))
#1 lore raw
Quoted 4 lines · J.A. Magallon

...
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).

Quoted 1 line

TIA

cu
Adrian

Signature · 4 lines
       "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