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.
Retrieve the appropriate llvm-gcc-4.2-x.y.source.tar.gz archive from the - llvm web site.
+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:
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-
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-
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-
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-
Build and install the compiler:
-make -make install-
+make +make install +
+EXTRALANGS=,fortran-