summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-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