summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-22 14:01:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-22 14:19:15 -0500
commit38b67b785cd9f5aecdfdf6ccddfe223f18ee030f (patch)
tree6c9edb68d2526112b1d7aa58635596f24ad29f3f
parente36f78468a9b5fa95e86868a4001dba006305966 (diff)
downloadpackages-38b67b785cd9f5aecdfdf6ccddfe223f18ee030f.tar.gz
packages-38b67b785cd9f5aecdfdf6ccddfe223f18ee030f.tar.bz2
packages-38b67b785cd9f5aecdfdf6ccddfe223f18ee030f.tar.xz
packages-38b67b785cd9f5aecdfdf6ccddfe223f18ee030f.zip
bootstrap/llvm16: Workarounds for PPC test issues
Closes: #1244
-rw-r--r--bootstrap/llvm16/APKBUILD11
-rw-r--r--bootstrap/llvm16/ppc-gcc-bug.patch22
2 files changed, 33 insertions, 0 deletions
diff --git a/bootstrap/llvm16/APKBUILD b/bootstrap/llvm16/APKBUILD
index 2562db7a6..df88dd1b4 100644
--- a/bootstrap/llvm16/APKBUILD
+++ b/bootstrap/llvm16/APKBUILD
@@ -27,6 +27,7 @@ source="https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/l
hexagon.patch
macho32.patch
musl-ppc64-elfv2.patch
+ ppc-gcc-bug.patch
python3-test.patch
roundeven.patch
"
@@ -78,6 +79,15 @@ prepare() {
rm test/tools/llvm-size/radix.test;;
esac
+ case $CARCH in
+ ppc)
+ # unknown issue, only used for bootstrapping (#1244)
+ for _failing_test in prettyprint_types.s \
+ simplified-template-names.s; do
+ rm test/tools/llvm-dwarfdump/X86/$_failing_test;
+ done;;
+ esac
+
# appears to be an issue on musl and glibc, but only fails on musl:
# https://github.com/NixOS/nixpkgs/blob/bb7e9e46/pkgs/development/compilers/llvm/8/llvm.nix#L74
rm -f test/CodeGen/AArch64/wineh4.mir
@@ -252,5 +262,6 @@ e6fec46f3a1183774e4a47b81f3287adc5aa28ebdd52f614c1111fb157cd3137d1b86e04ca76a92b
807587a0c897d47a01a846c5c4f7cbf1f2d16437a163b66ee2381a7147e9d04b0141b2c76d022db61903d0d2841ddb267ba98c66c9e41501ca41837659743df8 hexagon.patch
de9791cc476817782b553c4edab696132da4ed2b9a3d80dbf1b85b7dc7a8c5e4caf14f2f26e33c27cd80a91b36709d3b24caea910c0a6315ffbb297cb748468d macho32.patch
bec1fe4761dae33a8012a54b7bbdd179cac82febcd46ace1844772c06f207661c903f05fcb7a5ebbbece3e33a88b20a5d9b31b40e8a8cd5c626aec04cb6735be musl-ppc64-elfv2.patch
+bda83678acb97be4d4236179792b3555b8000242fa6bd9e2e78dcd4f6182395df7fa9b8742fde946f19b668615ab37db8670340d43683787d36c540937bca523 ppc-gcc-bug.patch
89ef5fbab039b017a5652656adf17b680525f1c5dd0b1afc8034fe0b34a2ca196d87640f54cc826356cfcd88c6e5f10754b7e38f04ca49ede4f3864080b787bd python3-test.patch
5e0868a96ecd3344a4badb3c23e7e9060a96e3fc7cb4a092febca93eff8c040839041c7a3c8a29955541b585081f84ab8c1ced26198ac93ad2d9db616faf1088 roundeven.patch"
diff --git a/bootstrap/llvm16/ppc-gcc-bug.patch b/bootstrap/llvm16/ppc-gcc-bug.patch
new file mode 100644
index 000000000..3c1371dc4
--- /dev/null
+++ b/bootstrap/llvm16/ppc-gcc-bug.patch
@@ -0,0 +1,22 @@
+Upstream: https://github.com/llvm/llvm-project/issues/95594
+Ref: #1204
+
+--- llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h.old 2024-06-15 12:21:32.000000000 -0500
++++ llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h 2024-06-25 21:42:07.495284340 -0500
+@@ -390,6 +390,8 @@
+ return Size;
+ }
+
++#pragma GCC push_options
++#pragma GCC optimize("no-tree-ch")
+ static bool serialize(SPSOutputBuffer &OB, const SequenceT &S) {
+ if (!SPSArgList<uint64_t>::serialize(OB, static_cast<uint64_t>(S.size())))
+ return false;
+@@ -398,6 +400,7 @@
+ return false;
+ return true;
+ }
++#pragma GCC pop_options
+
+ static bool deserialize(SPSInputBuffer &IB, SequenceT &S) {
+ using TBSD = TrivialSPSSequenceDeserialization<SPSElementTagT, SequenceT>;