This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: preliminary patch for faq.html#linuxkernel
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Re: preliminary patch for faq.html#linuxkernel
- From: Martin Reinecke <martin at MPA-Garching dot MPG dot DE>
- Date: Fri, 9 Jul 1999 23:48:15 +0200
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