diff --git a/0001-gcc11.patch b/0001-gcc11.patch new file mode 100644 index 0000000..67629a3 --- /dev/null +++ b/0001-gcc11.patch @@ -0,0 +1,12 @@ +diff --git a/utils/benchmark/src/benchmark_register.h b/utils/benchmark/src/benchmark_register.h +index 0705e219..4caa5ad4 100644 +--- a/llvm/utils/benchmark/src/benchmark_register.h ++++ b/llvm/utils/benchmark/src/benchmark_register.h +@@ -1,6 +1,7 @@ + #ifndef BENCHMARK_REGISTER_H + #define BENCHMARK_REGISTER_H + ++#include + #include + + #include "check.h" diff --git a/llvm.spec b/llvm.spec index c57c0b2..f9910f3 100644 --- a/llvm.spec +++ b/llvm.spec @@ -11,7 +11,7 @@ %global llvm_libdir %{_libdir}/%{name} %global build_llvm_libdir %{buildroot}%{llvm_libdir} #%%global rc_ver 6 -%global baserelease 1 +%global baserelease 2 %global llvm_srcdir llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src %global maj_ver 11 %global min_ver 0 @@ -55,6 +55,8 @@ Source4: lit.fedora.cfg.py # Fix coreos-installer test crash on s390x (rhbz#1883457), https://reviews.llvm.org/D89034 Patch1: 0001-SystemZ-Use-LA-instead-of-AGR-in-eliminateFrameIndex.patch +Patch2: 0001-gcc11.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake @@ -534,6 +536,9 @@ fi %endif %changelog +* Sat Oct 31 2020 Jeff Law - 11.0.0-2 +- Fix missing #include for gcc-11 + * Wed Oct 14 2020 Josh Stone - 11.0.0-1 - Fix coreos-installer test crash on s390x (rhbz#1883457)