From 23324d6c359729cc739e01bc409a8d9c8df23547 Mon Sep 17 00:00:00 2001 From: eastb233 Date: Wed, 20 Nov 2024 10:40:31 +0800 Subject: [PATCH] [clang] Increase the number of driver diagnostics Sync https://gitee.com/openeuler/llvm-project/pulls/104 (cherry picked from commit 2193591dd088ef8b1ba46ced0eb3c4799a467254) --- ...ase-the-number-of-driver-diagnostics.patch | 27 +++++++++++++++++++ clang.spec | 7 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0025-clang-Increase-the-number-of-driver-diagnostics.patch diff --git a/0025-clang-Increase-the-number-of-driver-diagnostics.patch b/0025-clang-Increase-the-number-of-driver-diagnostics.patch new file mode 100644 index 0000000..ed0e2a3 --- /dev/null +++ b/0025-clang-Increase-the-number-of-driver-diagnostics.patch @@ -0,0 +1,27 @@ +From 9efda5a71de8b117366152aa35a8837af0545d0f Mon Sep 17 00:00:00 2001 +From: eastb233 +Date: Mon, 28 Oct 2024 16:20:14 +0800 +Subject: [PATCH] [clang] Increase the number of driver diagnostics + +It hits the limited number of driver diagnostics, +increase `DIAG_SIZE_DRIVER`. +--- + clang/include/clang/Basic/DiagnosticIDs.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/clang/include/clang/Basic/DiagnosticIDs.h b/clang/include/clang/Basic/DiagnosticIDs.h +index bf4995175ef1..8bc45b91911c 100644 +--- a/clang/include/clang/Basic/DiagnosticIDs.h ++++ b/clang/include/clang/Basic/DiagnosticIDs.h +@@ -31,7 +31,7 @@ namespace clang { + // Size of each of the diagnostic categories. + enum { + DIAG_SIZE_COMMON = 300, +- DIAG_SIZE_DRIVER = 300, ++ DIAG_SIZE_DRIVER = 350, + DIAG_SIZE_FRONTEND = 150, + DIAG_SIZE_SERIALIZATION = 120, + DIAG_SIZE_LEX = 400, +-- +2.38.1.windows.1 + diff --git a/clang.spec b/clang.spec index 670748c..a6a7c96 100644 --- a/clang.spec +++ b/clang.spec @@ -43,7 +43,7 @@ Name: %{pkg_name} Version: %{clang_version} -Release: 28 +Release: 29 Summary: A C language family front-end for LLVM License: NCSA @@ -76,6 +76,8 @@ Patch21: 0021-AArch64-Delete-hip09-macro.patch Patch22: 0022-Driver-Pass-z-arg-and-Wl-z-arg-option-to-the-linker.patch Patch23: 0023-Handling-of-option-Wall-and-Werror-format-2-override.patch Patch24: 0024-Backport-PATCH-Clang-CodeGen-Add__builtin_bcopy.patch +Patch25: 0025-clang-Increase-the-number-of-driver-diagnostics.patch + # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301 Patch201: fedora-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch @@ -419,6 +421,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_bindir}/git-clang-format %changelog +* Wed Nov 20 2024 eastb233 - 17.0.6-29 +- [clang] Increase the number of driver diagnostics + * Wed Nov 20 2024 liyunfei - 17.0.6-28 - [Backport][Clang][CodeGen] Add __builtin_bcopy -- Gitee