From dc88066dc2d5693b36d4e1a2030cab9cf6d87aae Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Tue, 5 Feb 2019 06:02:39 +0000 Subject: [PATCH] Patch for gcc-9 bug --- ...nd-GCC-9-bug-when-handling-bitfields.patch | 25 +++++++++++++++++++ clang.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0001-Workaround-GCC-9-bug-when-handling-bitfields.patch diff --git a/0001-Workaround-GCC-9-bug-when-handling-bitfields.patch b/0001-Workaround-GCC-9-bug-when-handling-bitfields.patch new file mode 100644 index 0000000..eee6d3a --- /dev/null +++ b/0001-Workaround-GCC-9-bug-when-handling-bitfields.patch @@ -0,0 +1,25 @@ +From 201cacaa74446657d884786d31411a98f6f9c17e Mon Sep 17 00:00:00 2001 +From: serge-sans-paille +Date: Mon, 4 Feb 2019 21:25:45 +0000 +Subject: [PATCH] Workaround GCC 9 bug when handling bitfields. + +--- + include/clang/Frontend/TextDiagnosticPrinter.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/clang/Frontend/TextDiagnosticPrinter.h b/include/clang/Frontend/TextDiagnosticPrinter.h +index 3cb4e02edf..d47d71930c 100644 +--- a/include/clang/Frontend/TextDiagnosticPrinter.h ++++ b/include/clang/Frontend/TextDiagnosticPrinter.h +@@ -35,7 +35,7 @@ class TextDiagnosticPrinter : public DiagnosticConsumer { + /// A string to prefix to error messages. + std::string Prefix; + +- unsigned OwnsOutputStream : 1; ++ bool OwnsOutputStream; + + public: + TextDiagnosticPrinter(raw_ostream &os, DiagnosticOptions *diags, +-- +2.19.2 + diff --git a/clang.spec b/clang.spec index 04887ff..f3643ec 100644 --- a/clang.spec +++ b/clang.spec @@ -58,7 +58,7 @@ Name: %pkg_name Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 3%{?rc_ver:.rc%{rc_ver}}%{?dist}.1 +Release: 4%{?rc_ver:.rc%{rc_ver}}%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -77,6 +77,7 @@ Patch7: 0001-Convert-scan-view-to-python3-using-2to3.patch #rhbz#1657544 Patch8: 0001-CodeGen-Handle-mixed-width-ops-in-mixed-sign-mul-wit.patch Patch9: 0001-Fix-uninitialized-value-in-ABIArgInfo.patch +Patch10: 0001-Workaround-GCC-9-bug-when-handling-bitfields.patch # clang-tools-extra patches Patch100: 0001-Convert-run-find-all-symbols.py-to-python3-using-2to.patch @@ -421,8 +422,11 @@ false %endif %changelog +* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4 +- Workaround gcc-9 bug when compiling bitfields + * Fri Feb 01 2019 sguelton@redhat.com - 7.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild +- Fix uninitialized error detected by gcc-9 * Thu Jan 31 2019 Fedora Release Engineering - 7.0.1-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild