[cfe-commits] r86507 - /cfe/trunk/www/get_started.html

Chris Lattner sabre at nondot.org
Sun Nov 8 19:21:03 PST 2009

Author: lattner
Date: Sun Nov  8 21:21:02 2009
New Revision: 86507

URL: http://llvm.org/viewvc/llvm-project?rev=86507&view=rev
mention that clang defaults to C99 mode, PR5388


Modified: cfe/trunk/www/get_started.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/get_started.html?rev=86507&r1=86506&r2=86507&view=diff

--- cfe/trunk/www/get_started.html (original)
+++ cfe/trunk/www/get_started.html Sun Nov  8 21:21:02 2009
@@ -193,6 +193,12 @@
 hello world
+<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

More information about the cfe-commits mailing list