Accepting request 928787 from home:marxin:branches:devel:tools:compiler

- Backport llvm-fix-building-with-GCC-12.patch in order to fix building
  with GCC 12.

OBS-URL: https://build.opensuse.org/request/show/928787
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm13?expand=0&rev=3
This commit is contained in:
Aaron Puchert 2021-11-02 23:16:49 +00:00 committed by Git OBS Bridge
parent b0d3d50810
commit ec82236197
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From c5029023fb076f72a3e5bf26085642bcd1fa22fb Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Tue, 2 Nov 2021 09:34:09 +0100
Subject: [PATCH] Fix building with GCC 12:
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52380
Differential Revision: https://reviews.llvm.org/D112990
---
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
index 58415ecc9432..1f5312e5cb14 100644
--- a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
@@ -2065,7 +2065,7 @@ SILoadStoreOptimizer::collectMergeableInsts(
// adjacent to each other in the list, which will make it easier to find
// matches.
MergeList.sort(
- [] (const CombineInfo &A, CombineInfo &B) {
+ [] (const CombineInfo &A, const CombineInfo &B) {
return A.Offset < B.Offset;
});
++I;
--
2.33.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 2 13:30:06 UTC 2021 - Martin Liška <mliska@suse.cz>
- Backport llvm-fix-building-with-GCC-12.patch in order to fix building
with GCC 12.
-------------------------------------------------------------------
Sat Oct 2 20:13:04 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@ -137,6 +137,7 @@ Patch26: lld-default-sha1.patch
Patch27: llvm-exegesis-link-dylib.patch
# Fix lookup of targets in installed CMake files. (boo#1180748, https://reviews.llvm.org/D96670)
Patch33: CMake-Look-up-target-subcomponents-in-LLVM_AVAILABLE_LIBS.patch
Patch34: llvm-fix-building-with-GCC-12.patch
BuildRequires: binutils-devel >= 2.21.90
BuildRequires: cmake
BuildRequires: fdupes
@ -561,6 +562,7 @@ This package contains the development files for Polly.
%patch24 -p1
%patch27 -p2
%patch33 -p2
%patch34 -p2
pushd clang-%{_version}.src
%patch2 -p1