Ticket #2363: gcc-update.patch
File gcc-update.patch, 3.2 KB (added by , 16 years ago) |
---|
-
trunk/BOOK/chapter05/gcc-pass2.xml
66 66 <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.orig} 67 67 sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen> 68 68 69 <para>Non-bootstrap builds omit the <option>-fomit-frame-pointer</option> 70 build flag by default, and the goal should be to produce a compiler that is 71 exactly the same as if it were bootstrapped. Apply the following 72 <command>sed</command> command to force the build to use the flag:</para> 69 <para>For x86 machines, a bootstrap build of GCC uses the 70 <option>-fomit-frame-pointer</option> compiler flag. 71 Non-bootstrap builds omit this flag by default, and the goal should be to 72 produce a compiler that is exactly the same as if it were bootstrapped. 73 Apply the following <command>sed</command> command to force the build to 74 use the flag:</para> 73 75 74 76 <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp} 75 77 sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \ … … 209 211 <varlistentry> 210 212 <term><parameter>--disable-bootstrap</parameter></term> 211 213 <listitem> 212 <para>Bootstrapping the compiler is now the default for GCC. However, 213 our build method should provide us with a solid compiler without the 214 need to bootstrap each time.</para> 214 <para>For native builds of GCC, it defaults to a "bootstrap" build. 215 This does not just compile GCC, but compiles it several times. It 216 uses the programs compiled in a first round to compile itself a 217 second time, and then again a third time. It then compares these 218 second and third compiles to make sure it can reproduce itself 219 flawlessly. This also implies that it was compiled correctly. 220 However, our build method should provide us with a solid compiler 221 without the need to bootstrap each time.</para> 215 222 </listitem> 216 223 </varlistentry> 217 224 -
trunk/BOOK/chapter06/gcc.xml
48 48 49 49 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> 50 50 51 <para>For x86 machines, the bootstrap build performed in 52 <xref linkend="ch-tools-gcc-pass2"/> 53 built GCC with the <option>-fomit-frame-pointer</option> compiler flag. 54 Non-bootstrap builds omit this flag by default, so apply the following 55 <command>sed</command> to use it in order to ensure consistent compiler 56 builds:</para> 51 <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following 52 <command>sed</command> to force the build to use the 53 <option>-fomit-frame-pointer</option> compiler flag in order to ensure 54 consistent compiler builds:</para> 57 55 58 56 <screen><userinput remap="pre">case `uname -m` in 59 57 i?86) sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' \