diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-18 17:05:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-18 17:05:55 +0000 |
commit | 0ddd0ae50ecbb94da3d8d21632b9717c21bf8050 (patch) | |
tree | be1281d55e1c48431460ddce2d4f2fde6765d1f0 | |
parent | c37910ea28cfac1373870e462e275dc22a60aa3d (diff) | |
download | bcm5719-llvm-0ddd0ae50ecbb94da3d8d21632b9717c21bf8050.tar.gz bcm5719-llvm-0ddd0ae50ecbb94da3d8d21632b9717c21bf8050.zip |
accept and ignore a few things for better OpenBSD compatibility,
patch by Amit Kulkarni!
llvm-svn: 125944
-rw-r--r-- | clang/lib/Sema/AttributeList.cpp | 1 | ||||
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp index 73e956cc91a..c0a305365af 100644 --- a/clang/lib/Sema/AttributeList.cpp +++ b/clang/lib/Sema/AttributeList.cpp @@ -120,6 +120,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { .Case("init_priority", AT_init_priority) .Case("no_instrument_function", AT_no_instrument_function) .Case("thiscall", AT_thiscall) + .Case("bounded", IgnoredAttribute) // OpenBSD .Case("pascal", AT_pascal) .Case("__cdecl", AT_cdecl) .Case("__stdcall", AT_stdcall) diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 54e9405cbac..cbc940f2f0a 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1603,7 +1603,8 @@ static FormatAttrKind getFormatAttrKind(llvm::StringRef Format) { if (Format == "scanf" || Format == "printf" || Format == "printf0" || Format == "strfmon" || Format == "cmn_err" || Format == "strftime" || Format == "NSString" || Format == "CFString" || Format == "vcmn_err" || - Format == "zcmn_err") + Format == "zcmn_err" || + Format == "kprintf") // OpenBSD. return SupportedFormat; if (Format == "gcc_diag" || Format == "gcc_cdiag" || |