[cfe-commits] r98661 - /cfe/trunk/lib/Parse/AttributeList.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 16 12:29:19 PDT 2010
Author: lattner
Date: Tue Mar 16 14:29:19 2010
New Revision: 98661
URL: http://llvm.org/viewvc/llvm-project?rev=98661&view=rev
Log:
accept and ignore __gcc_tdiag__ so we don't produce warnings
building mainline GCC, PR6542
Modified:
cfe/trunk/lib/Parse/AttributeList.cpp
Modified: cfe/trunk/lib/Parse/AttributeList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/AttributeList.cpp?rev=98661&r1=98660&r2=98661&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/AttributeList.cpp (original)
+++ cfe/trunk/lib/Parse/AttributeList.cpp Tue Mar 16 14:29:19 2010
@@ -54,7 +54,6 @@
if (AttrName.startswith("__") && AttrName.endswith("__"))
AttrName = AttrName.substr(2, AttrName.size() - 4);
- // FIXME: Hand generating this is neither smart nor efficient.
return llvm::StringSwitch<AttributeList::Kind>(AttrName)
.Case("weak", AT_weak)
.Case("weakref", AT_weakref)
@@ -93,6 +92,7 @@
.Case("dllimport", AT_dllimport)
.Case("dllexport", AT_dllexport)
.Case("may_alias", IgnoredAttribute) // FIXME: TBAA
+ .Case("gcc_tdiag", IgnoredAttribute) // GCC diagnostics type checking.
.Case("base_check", AT_base_check)
.Case("deprecated", AT_deprecated)
.Case("visibility", AT_visibility)
More information about the cfe-commits
mailing list