]> granicus.if.org Git - clang/commitdiff
mention that clang defaults to C99 mode, PR5388
authorChris Lattner <sabre@nondot.org>
Mon, 9 Nov 2009 03:21:02 +0000 (03:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Nov 2009 03:21:02 +0000 (03:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86507 91177308-0d34-0410-b5e6-96231b3b80d8

www/get_started.html

index f504f8c9ac74e682b88307b0683c823ce86ad1e7..2a6044d51e2c322415581158fa22041aaf43060a 100644 (file)
@@ -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