Re: Where did kgcc go in 2.4.0-test10 ?

Jeff Garzik
2000-11-02T03:27:22Z

"J . A . Magallon" wrote:
>
> On Thu, 02 Nov 2000 02:12:31 Jeff Garzik wrote:
> >>
> > You're not changing 2.4.x to use kgcc, are you? It seems to be working
> > fine under gcc 2.95.2+fixes...
> >
>
> What means "using kgcc" ?

Alan has a script in 2.2.x which attempts to find the best compiler for
building your kernel. It looks for kgcc first, IIRC.

Alan's message wasn't clear, but it seemed to imply that a patch to add
this script to 2.4.x would be submitted to Linus. gcc 2.95.2 is a bit
smarter about some things, and I definitely prefer using that compiler.
I also prefer fixing 2.4.x kernel<->compiler bugs rather than defaulting
people to an older compiler.

> Think of packages like ALSA drivers grepping or analizing the kernel Makefile
> to find that options are -fomit-frame-pointer -malign=xxxx and so on.
> And that options can change from version to version of gcc.
> Simpler: build a script (what kgcc is). An external module package, use kgcc.

This is a totally separate issue. Choice of compiler is but one of many
variables. We need the build system to export all these variables, and
ALSA and other external packages will then pick up those settings for
use in their own builds. See for example
http://gtf.org/garzik/kernel/files/patches/2.4/2.4.0-test9/external-modules-2.4.0.9.8.patch.gz

Jeff

--
Jeff Garzik | "Mind if I drive?" -Sam
Building 1024 | "Not if you don't mind me clawing at the
MandrakeSoft | dash and shrieking like a cheerleader."
| -Max