> 
> > 
> > Jeepers creepers...  ;o)
> > 
> > This is one of the biggest FAQ's I think in all of Linux
> > land...  People argue about how they use compiler XXX.YYY and it
> > works for them, so it should work for everyone, when Linus, and
> 
> ;-)
> You do like going off half-cocked, don't you Mike?
> 
> I said it works for me. I did NOT say it will work for you.
> 
> Here's what accompanies the Kernel source; it's from test7:
> GCC
> ---
>  
> You will need at least gcc 2.7.2 to compile the kernel.  You currently
> have several options for gcc-derived compilers:  gcc 2.7.2.3, various
> versions of egcs, the new gcc 2.95 and upcoming gcc 3.0, and experimental
> compilers like pgcc.  For absolute stability, it is still recommended
> that gcc 2.7.2.3 be used to compile your kernel.  egcs 1.1.2 should also
> work.  gcc 2.95 is known to have problems, and using pgcc for your kernel
> is just asking for trouble.
>  
> In addition, please pay attention to compiler optimization.  Anything
> greater than -O2 may not be wise.  Similarly, if you choose to use gcc-2.95
> or derivatives, be sure not to use -fstrict-aliasing (which, depending on
> your version of gcc 2.95, may necessitate using -fno-strict-aliasing).
> 
> 
> 
> So yes, 2.95 might have problems, but the documented does NOT say "don't use 
> it" and it implies that the problem is overcome by using "-fno-strict-aliasing"
> 
> 

Another question is if these particular piece of the doc is up to
date.  It tends to lag behind: it discouraged use of egcs well after
the most conservative distributions had dropped gcc 2.7.2


Finally there is a natural tendency for kernel developpers to be very
consevative respective to compilers since a new compiler will have a
different (not necessarily lerger) set of bugs and will also trigger
some kernel bugs who happened to work with other compilers.  That is
why it is perhaps to other people to inverstigate use of newer
compilers, otherwise Linux's performance will end lagging behind
competitors due to slow code generated by an obsolete compiler.

-- 
                        Jean Francois Martinez




_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to