31 lines
1.6 KiB
Diff
31 lines
1.6 KiB
Diff
|
Patch-Source: https://github.com/chimera-linux/cports/blob/506127954653ccebf9b82df1452cce4ed0dae3b1/contrib/thunderbird/patches/ppc-musttail.patch
|
||
|
--
|
||
|
commit 5e66655e1456c9d26637ceaed3f4533b537322c4
|
||
|
Author: Daniel Kolesa <daniel@octaforge.org>
|
||
|
Date: Sat May 13 23:00:04 2023 +0200
|
||
|
|
||
|
disable musttail on ppc
|
||
|
|
||
|
41:38.04 LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
|
||
|
41:38.04 PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
|
||
|
41:38.04 Stack dump:
|
||
|
41:38.04 0. Running pass 'Function Pass Manager' on module '/builddir/thunderbird-114.0_beta1/obj-powerpc64le-unknown-linux-musl/toolkit/library/build/../../../gfx/skia/SkOpts.o'.
|
||
|
41:38.04 1. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_ZN8portableL15init_lane_masksEPNS_6ParamsEP21SkRasterPipelineStageffff'
|
||
|
41:38.95 clang-16: error: unable to execute command: Aborted
|
||
|
|
||
|
To be investigated later.
|
||
|
|
||
|
diff --git a/gfx/skia/skia/src/core/SkRasterPipeline.h b/gfx/skia/skia/src/core/SkRasterPipeline.h
|
||
|
index 766bb0c..88c6cb2 100644
|
||
|
--- a/gfx/skia/skia/src/core/SkRasterPipeline.h
|
||
|
+++ b/gfx/skia/skia/src/core/SkRasterPipeline.h
|
||
|
@@ -24,7 +24,7 @@ enum SkColorType : int;
|
||
|
struct SkImageInfo;
|
||
|
struct skcms_TransferFunction;
|
||
|
|
||
|
-#if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32)
|
||
|
+#if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && !defined(__powerpc__)
|
||
|
#define SK_HAS_MUSTTAIL 1
|
||
|
#else
|
||
|
#define SK_HAS_MUSTTAIL 0
|