summaryrefslogtreecommitdiffstats
path: root/clang/www/get_started.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-09 03:21:02 +0000
committerChris Lattner <sabre@nondot.org>2009-11-09 03:21:02 +0000
commite5eb726e2e82136cce6006a99bb95dde484f9f93 (patch)
tree28522a54d225c5d2b5b6858c1a05e8bbb05a0941 /clang/www/get_started.html
parentb8ca95481f0b9cf4cce8ea65b1a0ec1e0ff3a027 (diff)
downloadbcm5719-llvm-e5eb726e2e82136cce6006a99bb95dde484f9f93.tar.gz
bcm5719-llvm-e5eb726e2e82136cce6006a99bb95dde484f9f93.zip
mention that clang defaults to C99 mode, PR5388
llvm-svn: 86507
Diffstat (limited to 'clang/www/get_started.html')
-rw-r--r--clang/www/get_started.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/www/get_started.html b/clang/www/get_started.html
index f504f8c9ac7..2a6044d51e2 100644
--- a/clang/www/get_started.html
+++ b/clang/www/get_started.html
@@ -193,6 +193,12 @@ $ <b>./a.out</b>
hello world
</pre>
+<p>The 'clang' driver is designed to work as closely to GCC as possible to
+ maximize portability. The only major difference between the two is that
+ Clang defaults to gnu99 mode while GCC defaults to gnu89 mode. If you see
+ weird link-time errors relating to inline functions, try passing -std=gnu99
+ to clang.</p>
+
<h2>Examples of using Clang</h2>
<p>The high-level driver <tt>clang</tt> is designed to understand most of GCC's
OpenPOWER on IntegriCloud