This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preliminary patch for faq.html#linuxkernel


This is the revised patch for faq.html.

Cheers,
  Martin

*** 640,647 ****
  
  <hr>
  <h2><a name="linuxkernel">Building Linux kernels</a></h2>
- <p>Linux 2.2.x kernels work with any version of egcs.
  
  <p>If you try to build a 2.0.x kernel for Intel machines with egcs,
  then you are on your own.  The 2.0.x kernels are to be built only with
  gcc 2.7.2.  They use certain <code>asm</code> constructs which are
--- 640,653 ----
  
  <hr>
  <h2><a name="linuxkernel">Building Linux kernels</a></h2>
  
+ <p>The linux kernel violates certain aliasing rules specified in the
+ ANSI/ISO standard. Starting with version 2.95, the gcc optimizer
+ by default relies on these rules to produce more efficient code and thus
+ will produce malfunctioning kernels.
+ To work around this problem, the flag <CODE>-fno-strict-aliasing</CODE>
+ must be added to the <CODE>CFLAGS</CODE> variable in main kernel Makefile.
+ 
  <p>If you try to build a 2.0.x kernel for Intel machines with egcs,
  then you are on your own.  The 2.0.x kernels are to be built only with
  gcc 2.7.2.  They use certain <code>asm</code> constructs which are


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]