From e49ddc4d499f9b485e2faa60c0374dd0766c0ba131ac703ab4742657ec1b4328 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Sat, 31 Aug 2024 22:29:05 +0000 Subject: [PATCH] - Fix build with GCC 14 patch. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm17?expand=0&rev=32 --- clang-Fix-build-with-GCC-14-on-ARM.patch | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/clang-Fix-build-with-GCC-14-on-ARM.patch b/clang-Fix-build-with-GCC-14-on-ARM.patch index 66a7143..c80290a 100644 --- a/clang-Fix-build-with-GCC-14-on-ARM.patch +++ b/clang-Fix-build-with-GCC-14-on-ARM.patch @@ -1,4 +1,4 @@ -From 4b0c8c8576f95ddc216c9b33fce9f4226f465d00 Mon Sep 17 00:00:00 2001 +From b759349d5bbff6db186034ebf29b1128cfdbf212 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 19 Jan 2024 15:19:58 +0100 Subject: [PATCH] [Clang] Fix build with GCC 14 on ARM (#78704) @@ -14,8 +14,9 @@ an empty macro argument, so this is the hack I'm implementing here. Fixes https://github.com/llvm/llvm-project/issues/78691. --- clang/include/clang/Basic/TokenKinds.def | 3 ++- + clang/include/clang/Basic/TokenKinds.h | 2 +- clang/utils/TableGen/ClangAttrEmitter.cpp | 2 +- - 2 files changed, 3 insertions(+), 2 deletions(-) + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Basic/TokenKinds.def b/clang/include/clang/Basic/TokenKinds.def index ef0dad0f2dcd..3add13c079f3 100644 @@ -32,6 +33,19 @@ index ef0dad0f2dcd..3add13c079f3 100644 #endif #include "clang/Basic/AttrTokenKinds.inc" +diff --git a/clang/include/clang/Basic/TokenKinds.h b/clang/include/clang/Basic/TokenKinds.h +index e4857405bc7f..ff117bd5afc5 100644 +--- a/clang/include/clang/Basic/TokenKinds.h ++++ b/clang/include/clang/Basic/TokenKinds.h +@@ -109,7 +109,7 @@ bool isPragmaAnnotation(TokenKind K); + + inline constexpr bool isRegularKeywordAttribute(TokenKind K) { + return (false +-#define KEYWORD_ATTRIBUTE(X) || (K == tok::kw_##X) ++#define KEYWORD_ATTRIBUTE(X, ...) || (K == tok::kw_##X) + #include "clang/Basic/AttrTokenKinds.inc" + ); + } diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index b5813c6abc2b..79db17501b64 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp