From 0427f7a4af91a8886339aa125fdbf09e182d4e5b Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 29 Dec 2008 21:20:51 +0000 Subject: [PATCH] Simplified marking code regions with a single
 rather
 than a (
,
) combo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61480 91177308-0d34-0410-b5e6-96231b3b80d8
---
 docs/GCCFEBuildInstrs.html | 96 ++++++++++++++++++--------------------
 1 file changed, 46 insertions(+), 50 deletions(-)

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
+
  • 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
    +
  • 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
    +
  • 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
    +
  • Build LLVM with checking enabled (use ENABLE_OPTIMIZED=1 to build without checking):

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

    -
    -
    make ENABLE_OPTIMIZED=0 install
    -
    +
    +make ENABLE_OPTIMIZED=0 install
    +
  • 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 +
  • 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 +
  • 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
     
    -