[llvm-commits] [llvm-gcc-4.2] r48471 - in /llvm-gcc-4.2/trunk/gcc/config/rs6000: llvm-rs6000.cpp rs6000.h

Bill Wendling isanbard at gmail.com
Mon Mar 17 15:55:49 PDT 2008


On Mon, Mar 17, 2008 at 3:49 PM, Dale Johannesen <dalej at apple.com> wrote:
>
>  > Watch out for C++-style comments in GCC header files. They're
>  > #included into non-C++ files which cause warnings which turn into
>  > errors when we build the Apple Way(tm).
>
>  Sorry, I did know that.  But it occurs to me to wonder why this is a
>  problem.  Both gcc and Apple supported C++ style comments in C as far
>  back as the early 90s, and there is really no reason not to accept
>  them.  Do we build with -pedantic or something?
>
Yes, it uses -pedantic and -Werror (among others). It would probably
take adding a -std=c99 (or whatever) flag, I'm assuming. Though I
don't know what (if anything) that will do to our builds, re code
quality and such.

-bw



More information about the llvm-commits mailing list