[arch-commits] Commit in clang/repos (5 files)
Date: Saturday, October 26, 2019 @ 06:48:41 Author: felixonmars Revision: 365816 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (from rev 365815, clang/trunk/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch) clang/repos/staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (from rev 365815, clang/trunk/0001-Initialize-all-fields-in-ABIArgInfo.patch) clang/repos/staging-x86_64/PKGBUILD (from rev 365815, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 365815, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ 0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch | 32 + 0001-Initialize-all-fields-in-ABIArgInfo.patch | 40 + PKGBUILD| 124 enable-SSP-and-PIE-by-default.patch | 309 ++ 4 files changed, 505 insertions(+) Copied: clang/repos/staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (from rev 365815, clang/trunk/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch) === --- staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (rev 0) +++ staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch 2019-10-26 06:48:41 UTC (rev 365816) @@ -0,0 +1,32 @@ +From 8ea70c9ede7ac82d9363c122a9a84aded054984c Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Mon, 30 Sep 2019 23:42:17 + +Subject: [PATCH] Fix Driver/modules.cpp test to work when build directory name + contains '.s' + +Reviewers: dyung, rsmith, hansw + +Subscribers: mati865, mgorny, cfe-commits + +Tags: #clang + +Differential Revision: https://reviews.llvm.org/D66176 + +git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373275 91177308-0d34-0410-b5e6-96231b3b80d8 +--- + test/Driver/modules.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/Driver/modules.cpp b/test/Driver/modules.cpp +index 7c549c1300..4f4e3a4140 100644 +--- a/test/Driver/modules.cpp b/test/Driver/modules.cpp +@@ -15,7 +15,7 @@ + // 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-COMPILE-SAME: -o {{.*}}module{{2*}}.pcm.o + // CHECK-COMPILE-SAME: -x pcm + // CHECK-COMPILE-SAME: {{.*}}.pcm + Copied: clang/repos/staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (from rev 365815, clang/trunk/0001-Initialize-all-fields-in-ABIArgInfo.patch) === --- staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (rev 0) +++ staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch 2019-10-26 06:48:41 UTC (rev 365816) @@ -0,0 +1,40 @@ +From a1445cd0340006d7635101c4c2b27ae51328642c Mon Sep 17 00:00:00 2001 +From: Serge Guelton +Date: Thu, 19 Sep 2019 00:54:40 + +Subject: [PATCH] Initialize all fields in ABIArgInfo. + +Due to usage of an uninitialized fields, we end up with +a Conditional jump or move depends on uninitialised value + +Fixes https://bugs.llvm.org/show_bug.cgi?id=40547 + +Commited on behalf of Martin Liska + +git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372281 91177308-0d34-0410-b5e6-96231b3b80d8 +--- + include/clang/CodeGen/CGFunctionInfo.h | 10 -- + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h +index 1f81072e23d0..5069d9af42a3 100644 +--- a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h +@@ -109,14 +109,12 @@ class ABIArgInfo { + UnpaddedCoerceAndExpandType = T; + } + +- ABIArgInfo(Kind K) +- : TheKind(K), PaddingInReg(false), InReg(false) { +- } +- + public: +- ABIArgInfo() ++ ABIArgInfo(Kind K = Direct) + : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), +-TheKind(Direct), PaddingInReg(false), InReg(false) {} ++TheKind(K), PaddingInReg(false), InAllocaSRet(false), ++IndirectByVal(false), IndirectRealign(false), SRetAfterThis(false), ++InReg(false), CanBeFlattened(false), SignExt(false) {} + + static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0, + llvm::Type *Padding = nullptr, Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 365815, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD
[arch-commits] Commit in clang/repos (5 files)
Date: Friday, September 27, 2019 @ 01:21:07 Author: foutrelis Revision: 363482 archrelease: copy trunk to staging-x86_64 Added: clang/repos/staging-x86_64/ clang/repos/staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (from rev 363481, clang/trunk/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch) clang/repos/staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (from rev 363481, clang/trunk/0001-Initialize-all-fields-in-ABIArgInfo.patch) clang/repos/staging-x86_64/PKGBUILD (from rev 363481, clang/trunk/PKGBUILD) clang/repos/staging-x86_64/enable-SSP-and-PIE-by-default.patch (from rev 363481, clang/trunk/enable-SSP-and-PIE-by-default.patch) -+ 0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch | 27 0001-Initialize-all-fields-in-ABIArgInfo.patch | 40 + PKGBUILD| 121 +++ enable-SSP-and-PIE-by-default.patch | 309 ++ 4 files changed, 497 insertions(+) Copied: clang/repos/staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (from rev 363481, clang/trunk/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch) === --- staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch (rev 0) +++ staging-x86_64/0001-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch 2019-09-27 01:21:07 UTC (rev 363482) @@ -0,0 +1,27 @@ +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 + Copied: clang/repos/staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (from rev 363481, clang/trunk/0001-Initialize-all-fields-in-ABIArgInfo.patch) === --- staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch (rev 0) +++ staging-x86_64/0001-Initialize-all-fields-in-ABIArgInfo.patch 2019-09-27 01:21:07 UTC (rev 363482) @@ -0,0 +1,40 @@ +From a1445cd0340006d7635101c4c2b27ae51328642c Mon Sep 17 00:00:00 2001 +From: Serge Guelton +Date: Thu, 19 Sep 2019 00:54:40 + +Subject: [PATCH] Initialize all fields in ABIArgInfo. + +Due to usage of an uninitialized fields, we end up with +a Conditional jump or move depends on uninitialised value + +Fixes https://bugs.llvm.org/show_bug.cgi?id=40547 + +Commited on behalf of Martin Liska + +git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372281 91177308-0d34-0410-b5e6-96231b3b80d8 +--- + include/clang/CodeGen/CGFunctionInfo.h | 10 -- + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h +index 1f81072e23d0..5069d9af42a3 100644 +--- a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h +@@ -109,14 +109,12 @@ class ABIArgInfo { + UnpaddedCoerceAndExpandType = T; + } + +- ABIArgInfo(Kind K) +- : TheKind(K), PaddingInReg(false), InReg(false) { +- } +- + public: +- ABIArgInfo() ++ ABIArgInfo(Kind K = Direct) + : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), +-TheKind(Direct), PaddingInReg(false), InReg(false) {} ++TheKind(K), PaddingInReg(false), InAllocaSRet(false), ++IndirectByVal(false), IndirectRealign(false), SRetAfterThis(false), ++InReg(false), CanBeFlattened(false), SignExt(false) {} + + static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0, + llvm::Type *Padding = nullptr, Copied: clang/repos/staging-x86_64/PKGBUILD (from rev 363481, clang/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2019-09-27 01:21:07 UTC (rev 363482) @@ -0,0 +1,121 @@ +# M