[cfe-dev] c-index-test.c should be compiled in C89 or C99 mode explicitly
Dmitri Gribenko
gribozavr at gmail.com
Fri Jul 20 15:29:14 PDT 2012
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
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-dev
mailing list