public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* gcc-3.3.1-hammer vs current pre
@ 2003-07-13 23:40 J.A. Magallon
  2003-07-14  0:43 ` Adrian Bunk
  0 siblings, 1 reply; 2+ messages in thread
From: J.A. Magallon @ 2003-07-13 23:40 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Andrea Arcangeli

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 <jamagallon@able.es>      \                 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))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc-3.3.1-hammer vs current pre
  2003-07-13 23:40 gcc-3.3.1-hammer vs current pre J.A. Magallon
@ 2003-07-14  0:43 ` Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2003-07-14  0:43 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Lista Linux-Kernel, Andrea Arcangeli

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-14  0:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-13 23:40 gcc-3.3.1-hammer vs current pre J.A. Magallon
2003-07-14  0:43 ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox