From 86a049a618fc25c13d00a21b690b094163e4ba10 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 20 Dec 2019 02:50:51 +0000 Subject: [PATCH] 9.0.1 Release --- .gitignore | 2 + ...es.cpp-test-to-work-when-build-direc.patch | 27 -------------- ...ix-uninitialized-value-in-ABIArgInfo.patch | 37 ------------------- clang.spec | 13 +++---- sources | 4 +- 5 files changed, 10 insertions(+), 73 deletions(-) delete mode 100644 0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch delete mode 100644 0001-Fix-uninitialized-value-in-ABIArgInfo.patch diff --git a/.gitignore b/.gitignore index 707d1c8..a367288 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,5 @@ /clang-tools-extra-9.0.0rc3.src.tar.xz /cfe-9.0.0.src.tar.xz /clang-tools-extra-9.0.0.src.tar.xz +/clang-9.0.1.src.tar.xz +/clang-tools-extra-9.0.1.src.tar.xz diff --git a/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch b/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch deleted file mode 100644 index c7c6d7f..0000000 --- a/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 20ffd5bc4e45980dc804c5fa422e5182cbc975b7 Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Tue, 13 Aug 2019 13:38:40 -0700 -Subject: [PATCH] Fix Driver/modules.cpp test to work when build directory name - contains '.s' - ---- - clang/test/Driver/modules.cpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/clang/test/Driver/modules.cpp b/clang/test/Driver/modules.cpp -index 7c549c1..9e06151 100644 ---- a/clang/test/Driver/modules.cpp -+++ b/clang/test/Driver/modules.cpp -@@ -15,7 +15,8 @@ - // RUN: %clang -std=c++2a %t/module.pcm -S -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE - // - // CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}} --// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}} -+// Check for extra space to avoid failures when the build directory contains '.s' in its path. -+// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}}{{ }} - // CHECK-COMPILE-SAME: -x pcm - // CHECK-COMPILE-SAME: {{.*}}.pcm - --- -1.8.3.1 - diff --git a/0001-Fix-uninitialized-value-in-ABIArgInfo.patch b/0001-Fix-uninitialized-value-in-ABIArgInfo.patch deleted file mode 100644 index 6291203..0000000 --- a/0001-Fix-uninitialized-value-in-ABIArgInfo.patch +++ /dev/null @@ -1,37 +0,0 @@ -From bae24f2020f7dc9db372c7e3f38d77fc5fa320d0 Mon Sep 17 00:00:00 2001 -From: serge-sans-paille -Date: Fri, 1 Feb 2019 06:39:13 +0000 -Subject: [PATCH] Fix uninitialized value in ABIArgInfo - -GCC-9 takes advantage of this uninitialized values to optimize stuff, -which ends up in failing validation when compiling clang. ---- - clang/include/clang/CodeGen/CGFunctionInfo.h | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/clang/include/clang/CodeGen/CGFunctionInfo.h b/clang/include/clang/CodeGen/CGFunctionInfo.h -index 1f81072..caf7105 100644 ---- a/clang/include/clang/CodeGen/CGFunctionInfo.h -+++ b/clang/include/clang/CodeGen/CGFunctionInfo.h -@@ -110,13 +110,13 @@ private: - } - - ABIArgInfo(Kind K) -- : TheKind(K), PaddingInReg(false), InReg(false) { -- } -+ : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), -+ TheKind(K), PaddingInReg(false), InAllocaSRet(false), IndirectByVal(false), -+ IndirectRealign(false), SRetAfterThis(false), InReg(false), -+ CanBeFlattened(false), SignExt(false) {} - - public: -- ABIArgInfo() -- : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), -- TheKind(Direct), PaddingInReg(false), InReg(false) {} -+ ABIArgInfo() : ABIArgInfo(Direct) {} - - static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0, - llvm::Type *Padding = nullptr, --- -1.8.3.1 - diff --git a/clang.spec b/clang.spec index 37ceabf..d259461 100644 --- a/clang.spec +++ b/clang.spec @@ -2,9 +2,9 @@ %global maj_ver 9 %global min_ver 0 -%global patch_ver 0 +%global patch_ver 1 #%%global rc_ver 3 -%global baserelease 3 +%global baserelease 1 %global clang_tools_binaries \ %{_bindir}/clangd \ @@ -64,7 +64,7 @@ %global _smp_mflags -j8 %endif -%global clang_srcdir cfe-%{version}%{?rc_ver:rc%{rc_ver}}.src +%global clang_srcdir clang-%{version}%{?rc_ver:rc%{rc_ver}}.src %global clang_tools_srcdir clang-tools-extra-%{version}%{?rc_ver:rc%{rc_ver}}.src Name: %pkg_name @@ -80,9 +80,7 @@ Source1: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver} %endif Patch4: 0002-gtest-reorg.patch -Patch9: 0001-Fix-uninitialized-value-in-ABIArgInfo.patch Patch11: 0001-ToolChain-Add-lgcc_s-to-the-linker-flags-when-using-.patch -Patch12: 0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch Patch13: 0001-Make-funwind-tables-the-default-for-all-archs.patch BuildRequires: gcc @@ -225,9 +223,7 @@ pathfix.py -i %{__python3} -pn \ %setup -q -n %{clang_srcdir} %patch4 -p1 -b .gtest -%patch9 -p2 -b .abi-arginfo %patch11 -p1 -b .libcxx-fix -%patch12 -p2 -b .module-test-fix mv ../%{clang_tools_srcdir} tools/extra @@ -443,6 +439,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %endif %changelog +* Thu Dec 19 2019 Tom Stellard - 9.0.1-1 +- 9.0.1 Release + * Wed Dec 11 2019 Tom Stellard - 9.0.0-3 - Add explicit requires for clang-libs to fix rpmdiff errors diff --git a/sources b/sources index 72efbb6..6339267 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (cfe-9.0.0.src.tar.xz) = 83fcca5499102b375e620cdac97d75e6111ebed4ef10240859ddd8a88bc5b022703739d2eae0d8693c91892ad11fc6b531c0dbee62fbce68d3be595b94f0b1fe -SHA512 (clang-tools-extra-9.0.0.src.tar.xz) = 70fd5cdeb8d371e5bbc369bdea3b94a1e3f450e1fdc109a2328d75b30a09c56fbed31678e211172e0a1fc1ff82c9ab4dfea4238be2cc0b82598f71ce9b7ab7d3 +SHA512 (clang-9.0.1.src.tar.xz) = 3bcdcfd1ebb20a2cb15d57c608106b6e6e9c2eda4b781f573e84e0600b775bb7609f6df9edcf819ee5d91cc01a28ee089353c29fd57c23b867afbf6ad2f5cd13 +SHA512 (clang-tools-extra-9.0.1.src.tar.xz) = 4a671596460809f314ed96b0cc0be7f2498692275d0a7bd08266f9cdf4b85fb39cb4eea4131602e9a170a75eb5d9623449960f873e25b999e06c016387a1918d