From e9acc9f4a740fbf74caabe1b3c96cec32e8000e8 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 16 Aug 2009 09:54:28 +0000 Subject: [PATCH] Ignore bounded attribute and kprintf format for now, to reduce the number of warnings we don't care about. ok sthen@ --- devel/llvm/Makefile | 4 ++-- .../patch-tools_clang_lib_Parse_AttributeList_cpp | 11 +++++++++++ .../patch-tools_clang_lib_Sema_SemaDeclAttr_cpp | 13 +++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 devel/llvm/patches/patch-tools_clang_lib_Parse_AttributeList_cpp create mode 100644 devel/llvm/patches/patch-tools_clang_lib_Sema_SemaDeclAttr_cpp diff --git a/devel/llvm/Makefile b/devel/llvm/Makefile index afcf724bc66..3354d53df3a 100644 --- a/devel/llvm/Makefile +++ b/devel/llvm/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.16 2009/08/09 20:16:41 jsg Exp $ +# $OpenBSD: Makefile,v 1.17 2009/08/16 09:54:28 jsg Exp $ COMMENT = Low Level Virtual Machine (LLVM) compiler infrastructure LLVM_V = 2.6pre20090808 DISTNAME = llvm-${LLVM_V} -PKGNAME = ${DISTNAME}p0 +PKGNAME = ${DISTNAME}p1 EXTRACT_SUFX = .tar.bz2 CATEGORIES = devel diff --git a/devel/llvm/patches/patch-tools_clang_lib_Parse_AttributeList_cpp b/devel/llvm/patches/patch-tools_clang_lib_Parse_AttributeList_cpp new file mode 100644 index 00000000000..1893734ed2f --- /dev/null +++ b/devel/llvm/patches/patch-tools_clang_lib_Parse_AttributeList_cpp @@ -0,0 +1,11 @@ +$OpenBSD: patch-tools_clang_lib_Parse_AttributeList_cpp,v 1.1 2009/08/16 09:54:28 jsg Exp $ +--- tools/clang/lib/Parse/AttributeList.cpp.orig Sat Aug 8 01:35:04 2009 ++++ tools/clang/lib/Parse/AttributeList.cpp Sat Aug 15 14:12:37 2009 +@@ -76,6 +76,7 @@ AttributeList::Kind AttributeList::getKind(const Ident + break; + case 7: + if (!memcmp(Str, "aligned", 7)) return AT_aligned; ++ if (!memcmp(Str, "bounded", 7)) return IgnoredAttribute; + if (!memcmp(Str, "cleanup", 7)) return AT_cleanup; + if (!memcmp(Str, "nodebug", 7)) return AT_nodebug; + if (!memcmp(Str, "nonnull", 7)) return AT_nonnull; diff --git a/devel/llvm/patches/patch-tools_clang_lib_Sema_SemaDeclAttr_cpp b/devel/llvm/patches/patch-tools_clang_lib_Sema_SemaDeclAttr_cpp new file mode 100644 index 00000000000..3b42a7e0a9c --- /dev/null +++ b/devel/llvm/patches/patch-tools_clang_lib_Sema_SemaDeclAttr_cpp @@ -0,0 +1,13 @@ +$OpenBSD: patch-tools_clang_lib_Sema_SemaDeclAttr_cpp,v 1.1 2009/08/16 09:54:28 jsg Exp $ +--- tools/clang/lib/Sema/SemaDeclAttr.cpp.orig Sun Aug 9 00:01:03 2009 ++++ tools/clang/lib/Sema/SemaDeclAttr.cpp Sat Aug 15 14:12:37 2009 +@@ -1213,7 +1213,8 @@ static void HandleFormatAttr(Decl *d, const AttributeL + case 5: Supported = !memcmp(Format, "scanf", 5); break; + case 6: Supported = !memcmp(Format, "printf", 6); break; + case 7: Supported = !memcmp(Format, "printf0", 7) || +- !memcmp(Format, "strfmon", 7); break; ++ !memcmp(Format, "strfmon", 7) || ++ !memcmp(Format, "kprintf", 7); break; + case 8: + Supported = (is_strftime = !memcmp(Format, "strftime", 8)) || + (is_NSString = !memcmp(Format, "NSString", 8)) ||