[cfe-dev] c-index-test.c should be compiled in C89 or C99 mode explicitly
dgregor at apple.com
Fri Jul 20 20:16:42 PDT 2012
On Jul 20, 2012, at 3:29 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 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?
GCC defaults to C89, and Microsoft doesn't even support C99.
More information about the cfe-dev