From a54d4b27b68e33c23097f02690e3634851b416e3 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 17 Dec 2008 18:11:40 +0000 Subject: Simplified marking code regions -- no need to use
to surround
 tags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61143 91177308-0d34-0410-b5e6-96231b3b80d8
---
 docs/FAQ.html | 56 ++++++++++++++++++--------------------------------------
 1 file changed, 18 insertions(+), 38 deletions(-)

(limited to 'docs')

diff --git a/docs/FAQ.html b/docs/FAQ.html
index 663c3a1..7533312 100644
--- a/docs/FAQ.html
+++ b/docs/FAQ.html
@@ -234,11 +234,9 @@ it:

  • Run configure with an alternative PATH that is correct. In a Borne compatible shell, the syntax would be:

    -
    -
    +
     % PATH=[the path without the bad program] ./configure ...
     
    -

    This is still somewhat inconvenient, but it allows configure to do its work without having to adjust your PATH @@ -278,9 +276,9 @@ old version. What do I do?

    can just run the following command in the top level directory of your object tree:

    -
    -
    % ./config.status <relative path to Makefile>
    -
    +
    +% ./config.status <relative path to Makefile>
    +

    If the Makefile is new, you will have to modify the configure script to copy it over.

    @@ -315,18 +313,16 @@ clean and then make in the directory that fails to build.

    For example, if you built LLVM with the command:

    -
    -
    % gmake ENABLE_PROFILING=1
    -
    +
    +% gmake ENABLE_PROFILING=1
    +

    ...then you must run the tests with the following commands:

    -
    -
    +
     % cd llvm/test
     % gmake ENABLE_PROFILING=1
     
    -
  • @@ -365,25 +361,21 @@ target".

    If the error is of the form:

    -
    -
    +
     gmake[2]: *** No rule to make target `/path/to/somefile', needed by
     `/path/to/another/file.d'.
    Stop.
    -

    This may occur anytime files are moved within the Subversion repository or removed entirely. In this case, the best solution is to erase all .d files, which list dependencies for source files, and rebuild:

    -
    -
    +
     % cd $LLVM_OBJ_DIR
     % rm -f `find . -name \*\.d` 
     % gmake 
     
    -

    In other cases, it may be necessary to run make clean before rebuilding.

    @@ -540,13 +532,11 @@ find libcrtend.a. The only way this can happen is if you haven't installed the runtime library. To correct this, do:

    -
    -
    +
     % cd llvm/runtime
     % make clean ; make install-bytecode
     
    -

    @@ -583,21 +573,17 @@ C++ support for a processor that does not otherwise have a C++ compiler.

    1. Compile your program as normal with llvm-g++:

      -
      -
      +
       % llvm-g++ x.cpp -o program
       
      -

      or:

      -
      -
      +
       % llvm-g++ a.cpp -c
       % llvm-g++ b.cpp -c
       % llvm-g++ a.o b.o -o program
       
      -

      With llvm-gcc3, this will generate program and program.bc. The .bc file is the LLVM version of the program all linked together.

    2. @@ -605,19 +591,15 @@ C++ support for a processor that does not otherwise have a C++ compiler.
    3. Convert the LLVM code to C code, using the LLC tool with the C backend:

      -
      -
      +
       % llc -march=c program.bc -o program.c
      -
      -
    4. +
    5. Finally, compile the C file:

      -
      -
      +
       % cc x.c
      -
      -
    6. +
    @@ -708,11 +690,9 @@ you can read from and assign to volatile global variables. a value that is not defined. You can get these if you do not initialize a variable before you use it. For example, the C function:

    -
    -
    +
     int X() { int i; return i; }
     
    -

    Is compiled to "ret i32 undef" because "i" never has a value specified for it.

    -- cgit v1.1