[cfe-dev] c-index-test.c should be compiled in C89 or C99 mode explicitly

Marc J. Driftmeyer mjd at reanimality.com
Fri Jul 20 16:00:19 PDT 2012


Just a stab here, but perhaps to be current with Apple and it's focus on 
LLVM/Clang and its included focus on OpenCL which is C99 based for 
writing kernels, it makes sense for Clang to be C99, by default with GCC 
no longer the default?

-  Marc

On 07/20/2012 03:29 PM, Dmitri Gribenko wrote:
> Hi,
>
> Currently LLVM build system does not pass any -std flags to C compiler
> while compiling c-index-test.c.  This makes clang default to C99, but
> gcc defaults to C89.  I think that LLVM build system should be fixed
> to specify standard explicitly.
>
> I'm not familiar with internals of LLVM build systems, could anyone
> take a look at this and maybe fix it?
>
> Is there a particular reason to choose C89 over C99?
>
> Dmitri
>

-- 
Marc J. Driftmeyer
Email :: mjd at reanimality.com <mailto:mjd at reanimality.com>
Web :: http://www.reanimality.com
Cell :: (509) 435-5212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120720/36e33726/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mjd.vcf
Type: text/x-vcard
Size: 317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120720/36e33726/attachment.vcf>


More information about the cfe-dev mailing list