lkml.org 
[lkml]   [1998]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: pgcc optimizations
Date
From
Marc Lehmann <pcg@goof.com> said:

[...]

> May I repeat:
>
> YOU CAN'T COMPILE LINUX WITH ANYTHING ELSE THAN GCC-2.7.2

True for linux-2.0, false for linux-2.1. And that only on i386, other
architectures (SPARC, AXP) use egcs routinely (at least RedHat-5.2 does,
AFAIK).

> Everythign else is on your own risk. 2.0 obviously is not fixed with respect
> to newer optimizations. 2.1 has many many problems with its asms (on the x86
> platform), in addition to stresssing the compiler.

linux-2.1.131ac11 compiles without a hitch with egcs-19981213 and
binutils-2.9.1.0.19a (latest snapshots) and appears to work fine. The last
asm()s have been fixed recently (2.1.131ac8, IIRC). Before that, the 2.1
kernels have mostly compiled without trouble with egcs snapshots (I've
started doing that sometime in january, IIRC). egcs releases work just
fine, and have done so most of the time (the blame was more on the kernel's
side). Just in the last two weekly snapshots is egcs strict with its asm()
constraint rules enforcement, BTW, so that this is already fixed is a great
example at bazaar development at ist very best.

> Until both the kernel and the compilers are fixed (just a matter of time),
> please don't blame the compiler nor the kernel, either fix it or don't use
> it.

The compiler is fine, the kernel is almost there (there still might be
places where it hasn't been checked yet, but I tend to doubt it).

Getting the kernel tested with egcs is crucial: You don't want to carry a
buggy C compiler around just for compiling the kernel.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.137 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site