[cfe-commits] r69560 - in /cfe/trunk: include/clang/Basic/DiagnosticLexKinds.td lib/Lex/Pragma.cpp

Chris Lattner clattner at apple.com
Sun Apr 19 23:27:57 PDT 2009


On Apr 19, 2009, at 11:10 PM, Sebastian Redl wrote:
> On Sun, 19 Apr 2009 23:16:59 -0000, Chris Lattner <sabre at nondot.org>  
> wrote:
>> Author: lattner
>> Date: Sun Apr 19 18:16:58 2009
>> New Revision: 69560
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=69560&view=rev
>> Log:
>> implement "#pragma GCC diagnostic".  Besides being a nice feature,  
>> this
>> will let us test for multiple different warning modes in the same
>> file in regression tests.
>
> Hey, I wanted to do that! :-)

Hehe.

> Does GCC actually support this option?


Yep, apparently in 4.3 and later?  I implemented this:
http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas

-Chris




More information about the cfe-commits mailing list