summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-16 19:29:19 +0000
committerChris Lattner <sabre@nondot.org>2010-03-16 19:29:19 +0000
commit379e1b9cc9801b10e48fd3041e767e685b00b178 (patch)
treefd6874bb4273298722b7b907e258fde531a3b6da
parent9ae99e0df5106623fe516017afa8aab2ec4059ed (diff)
downloadbcm5719-llvm-379e1b9cc9801b10e48fd3041e767e685b00b178.tar.gz
bcm5719-llvm-379e1b9cc9801b10e48fd3041e767e685b00b178.zip
accept and ignore __gcc_tdiag__ so we don't produce warnings
building mainline GCC, PR6542 llvm-svn: 98661
-rw-r--r--clang/lib/Parse/AttributeList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/AttributeList.cpp b/clang/lib/Parse/AttributeList.cpp
index b96dff573df..a66dd96b259 100644
--- a/clang/lib/Parse/AttributeList.cpp
+++ b/clang/lib/Parse/AttributeList.cpp
@@ -54,7 +54,6 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
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 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
.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)
OpenPOWER on IntegriCloud