Fix missing #include for gcc-11

This commit is contained in:
Jeff Law 2021-02-10 07:27:46 -07:00
parent 259047c22b
commit b719be453d
2 changed files with 17 additions and 1 deletions

12
flang-gcc11.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/runtime/unit.cpp b/runtime/unit.cpp
index cf20d7c..643d936 100644
--- a/runtime/unit.cpp
+++ b/runtime/unit.cpp
@@ -11,6 +11,7 @@
#include "lock.h"
#include "unit-map.h"
#include <cstdio>
+#include <limits>
namespace Fortran::runtime::io {

View File

@ -1,5 +1,5 @@
%global rc_ver 1
%global baserelease 2
%global baserelease 3
%global flang_srcdir flang-%{version}%{?rc_ver:rc%{rc_ver}}.src
%global maj_ver 11
%global min_ver 1
@ -24,6 +24,7 @@ Patch1: shared.patch
Patch2: gtest.patch
# Needed for documentation generation
Patch3: sphinx_markdown_tables.patch
Patch4: %{name}-gcc11.patch
# because mlir doesn't build on arm (yet)
ExcludeArch: armv7hl
@ -171,6 +172,9 @@ export LD_LIBRARY_PATH=%{_builddir}/%{flang_srcdir}/%{_build}/lib
%doc %{_pkgdocdir}/html/
%changelog
* Wed Feb 10 2021 Jeff Law <law@redhat.com> - 11.1.0-0.3.rc1
- Fix missing #include for gcc-11
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.1.0-0.2.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild