diff --git a/docs/GCCFEBuildInstrs.html b/docs/GCCFEBuildInstrs.html index f9a9a0be921..34de9f85949 100644 --- a/docs/GCCFEBuildInstrs.html +++ b/docs/GCCFEBuildInstrs.html @@ -36,8 +36,9 @@ front-ends are completely different (and much easier!) than those for building llvm-gcc3 in the past.

    -
  1. Retrieve the appropriate llvm-gcc-4.2-x.y.source.tar.gz archive from the - llvm web site.

    +
  2. Retrieve the appropriate llvm-gcc-4.2-version.source.tar.gz + archive from the LLVM web + site.

    It is also possible to download the sources of the llvm-gcc front end from a read-only mirror using subversion. To check out the 4.2 code @@ -109,85 +110,83 @@ top-level README.LLVM file, adding ",ada" to EXTRALANGS, for example:

  3. Download the LLVM source and unpack it:

    -
    -
    wget http://llvm.org/releases/2.4/llvm-2.4.tar.gz
    +
    +wget http://llvm.org/releases/2.4/llvm-2.4.tar.gz
     tar xzf llvm-2.4.tar.gz
    -mv llvm-2.4 llvm
    -
    +mv llvm-2.4 llvm +

    or check out the latest version from subversion:

    -
    -
    svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
    -
    +
    svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
    +
  4. Download the llvm-gcc-4.2 source and unpack it:

    -
    -
    wget http://llvm.org/releases/2.4/llvm-gcc-4.2-2.4.source.tar.gz
    +
    +wget http://llvm.org/releases/2.4/llvm-gcc-4.2-2.4.source.tar.gz
     tar xzf llvm-gcc-4.2-2.4.source.tar.gz
    -mv llvm-gcc4.2-2.4.source llvm-gcc-4.2
    -
    +mv llvm-gcc4.2-2.4.source llvm-gcc-4.2 +

    or check out the latest version from subversion:

    -
    -
    svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2
    -
    +
    +svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2
    +
  5. Make a build directory llvm-objects for llvm and make it the current directory:

    -
    -
    mkdir llvm-objects
    -cd llvm-objects
    -
    +
    +mkdir llvm-objects
    +cd llvm-objects
    +
  6. Configure LLVM (here it is configured to install into /usr/local):

    -
    -
    ../llvm/configure --prefix=/usr/local
    -
    +
    +../llvm/configure --prefix=/usr/local
    +

    If you have a multi-compiler setup and the C++ compiler is not the default, then you can configure like this:

    -
    -
    CXX=PATH_TO_C++_COMPILER ../llvm/configure --prefix=/usr/local
    -
    +
    +CXX=PATH_TO_C++_COMPILER ../llvm/configure --prefix=/usr/local
    +
  7. Build LLVM with checking enabled (use ENABLE_OPTIMIZED=1 to build without checking):

    -
    -
    make ENABLE_OPTIMIZED=0
    -
    +
    +make ENABLE_OPTIMIZED=0
    +
  8. Install LLVM (optional):

    -
    -
    make ENABLE_OPTIMIZED=0 install
    -
    +
    +make ENABLE_OPTIMIZED=0 install
    +
  9. Make a build directory llvm-gcc-4.2-objects for llvm-gcc and make it the current directory:

    -
    -
    +
     cd ..
     mkdir llvm-gcc-4.2-objects
    -cd llvm-gcc-4.2-objects
    -
    +cd llvm-gcc-4.2-objects +
  10. Configure llvm-gcc (here it is configured to install into /usr/local). @@ -196,26 +195,25 @@ cd llvm-gcc-4.2-objects Additional languages can be appended to the --enable-languages switch, for example --enable-languages=ada,c,c++.

    -
    -
    ../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib
    -
    +
    +../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib
    +

    If you have a multi-compiler setup, then you can configure like this:

    -
    -
    +
     export CC=PATH_TO_C_AND_ADA_COMPILER
     export CXX=PATH_TO_C++_COMPILER
    -../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib
    -
    +../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib +
  11. Build and install the compiler:

    -
    -
    make
    -make install
    -
    +
    +make
    +make install
    +
@@ -231,11 +229,9 @@ make install To build with support for Fortran, follow the directions in the top-level README.LLVM file, adding ",fortran" to EXTRALANGS, for example:

-
-
+
 EXTRALANGS=,fortran
 
-