From: Chris Lattner Date: Mon, 9 Nov 2009 03:21:02 +0000 (+0000) Subject: mention that clang defaults to C99 mode, PR5388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63d423dab6b5fcc107286f8d38f0e64c220da3a6;p=clang mention that clang defaults to C99 mode, PR5388 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86507 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/www/get_started.html b/www/get_started.html index f504f8c9ac..2a6044d51e 100644 --- a/www/get_started.html +++ b/www/get_started.html @@ -193,6 +193,12 @@ $ ./a.out hello world +

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.

+

Examples of using Clang

The high-level driver clang is designed to understand most of GCC's