From: Chris Lattner
Date: Thu, 23 Oct 2003 03:55:23 +0000 (+0000)
Subject: Minor edits
X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e38c628939096fba620533d4929ad1fb573e370f;hp=c3afd9bf4bb06516b73645d6e0a73ae740433601
Minor edits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9399 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/CFEBuildInstrs.html b/docs/CFEBuildInstrs.html
index 0367dd804d8..080153fe8ce 100644
--- a/docs/CFEBuildInstrs.html
+++ b/docs/CFEBuildInstrs.html
@@ -71,7 +71,7 @@ good GCC hacker.
% gmake all; gmake install
- Common Problem 1: You may get error messages regarding the fact
+
Common Problem: You may get error messages regarding the fact
that LLVM does not support inline assembly. Here are two common
fixes:
@@ -88,19 +88,26 @@ good GCC hacker.
and apply a patch so that it does not use inline assembly.
- Common Problem 2: FIXME: Chris should add a section about
- common problems porting to a new architecture, including changes you
- might have to make to the gcc/gcc/config/name-of-cpu
- directory. For example (expand these):
+ Porting to a new architecture: If you are porting the new front-end
+ to a new architecture, or compiling in a different configuration that we have
+ previously, there are probably several changes you will have to make to the GCC
+ target to get it to work correctly. These include:
- - Munge linker flags so they are compatible with gccld.
- - Change the target so it doesn't have long double; just use double
- instead.
- - No inline assembly for position independent code.
- - We handle init and fini differently.
- - Do not include inline assembly map things for SPARC, or profile
- things.
+ - Often targets include special or assembler linker flags which
+ gccas/gccld does not understand. In general, these can
+ just be removed.
+ - LLVM currently does not support any floating point values other than
+ 32-bit and 64-bit IEEE floating point. The primary effect of this is
+ that you may have to map "long double" onto "double".
+ - The profiling hooks in GCC do not apply at all to the LLVM front-end.
+ These may need to be disabled.
+ - No inline assembly for position independent code. At the LLVM level,
+ everything is position independent.
+ - We handle .init and .fini differently.
+ - Did we mention that we don't support inline assembly? You'll probably
+ have to add some fixinclude hacks to disable it in the system
+ headers.
@@ -129,8 +136,8 @@ libgcc.a library, which you can find by running
Test the newly-installed C frontend by one or more of the
following means:
- - compiling and running a "hello, world" program in C or C++.
- - running the tests under test/Programs using
gmake -C
+ - compiling and running a "hello, LLVM" program in C and C++.
+ - running the tests under test/Programs using
gmake -C
test/Programs