!164 [clang] Increase the number of driver diagnostics

From: @eastb233 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
This commit is contained in:
openeuler-ci-bot 2024-11-20 09:28:07 +00:00 committed by Gitee
commit 201c790be7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 9efda5a71de8b117366152aa35a8837af0545d0f Mon Sep 17 00:00:00 2001
From: eastb233 <xiezhiheng@huawei.com>
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

View File

@ -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 <xiezhiheng@huawei.com> - 17.0.6-29
- [clang] Increase the number of driver diagnostics
* Wed Nov 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-28
- [Backport][Clang][CodeGen] Add __builtin_bcopy