Fix build with GCC 13
This commit is contained in:
parent
fbcbbf4838
commit
0b02061757
28
0001-Flang-Explicitly-include-cstdint-NFC.patch
Normal file
28
0001-Flang-Explicitly-include-cstdint-NFC.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 01f8544e8d7ab70330b551c2433409181adccf20 Mon Sep 17 00:00:00 2001
|
||||
From: Nikita Popov <npopov@redhat.com>
|
||||
Date: Thu, 19 Jan 2023 14:28:58 +0100
|
||||
Subject: [PATCH] [Flang] Explicitly include cstdint (NFC)
|
||||
|
||||
This header uses std::int8_t, but does not include cstdint.
|
||||
|
||||
This fixes the build against libstc++ 13, where some indirect
|
||||
header includes have been removed.
|
||||
---
|
||||
flang/include/flang/Parser/characters.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/flang/include/flang/Parser/characters.h b/flang/include/flang/Parser/characters.h
|
||||
index 1a7d395be2bf..239be8d4bf4a 100644
|
||||
--- a/flang/include/flang/Parser/characters.h
|
||||
+++ b/flang/include/flang/Parser/characters.h
|
||||
@@ -14,6 +14,7 @@
|
||||
// also to accomodate Fortran tokenization.
|
||||
|
||||
#include <cstddef>
|
||||
+#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
--
|
||||
2.39.0
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
Name: flang
|
||||
Version: %{flang_version}%{?rc_ver:~rc%{rc_ver}}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: a Fortran language front-end designed for integration with LLVM
|
||||
|
||||
License: Apache-2.0 WITH LLVM-exception
|
||||
@ -31,6 +31,7 @@ Patch2: link-against-libclang-cpp.patch
|
||||
# one has been upstreamed as https://reviews.llvm.org/D131475.
|
||||
Patch3: 0001-flang-docs-nfc-Refine-FlangOptionsDocs.td.patch
|
||||
Patch4: 0001-Use-find_program-for-clang-tblgen.patch
|
||||
Patch5: 0001-Flang-Explicitly-include-cstdint-NFC.patch
|
||||
|
||||
# Avoid gcc reaching 4GB of memory on 32-bit targets and also running out of
|
||||
# memory on builders with many CPUs.
|
||||
@ -214,6 +215,9 @@ export LD_LIBRARY_PATH=%{_builddir}/%{flang_srcdir}/%{_build}/lib
|
||||
%doc %{_pkgdocdir}/html/
|
||||
|
||||
%changelog
|
||||
* Thu Jan 19 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-3
|
||||
- Fix build with GCC 13
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user