Ticket #2363: gcc-update.patch

File gcc-update.patch, 3.2 KB (added by chris@…, 16 years ago)

Update GCC instructions

  • trunk/BOOK/chapter05/gcc-pass2.xml

     
    6666<screen><userinput remap="pre">cp -v gcc/Makefile.in{,.orig}
    6767sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
    6868
    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>
    7375
    7476<screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp}
    7577sed 's/^XCFLAGS =$/&amp; -fomit-frame-pointer/' gcc/Makefile.in.tmp \
     
    209211      <varlistentry>
    210212        <term><parameter>--disable-bootstrap</parameter></term>
    211213        <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>
    215222        </listitem>
    216223      </varlistentry>
    217224
  • trunk/BOOK/chapter06/gcc.xml

     
    4848
    4949<screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
    5050
    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>
    5755
    5856<screen><userinput remap="pre">case `uname -m` in
    5957  i?86) sed -i 's/^XCFLAGS =$/&amp; -fomit-frame-pointer/' \