# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/thunderbird/hotfix-tailcalls.patch # Copyright (C) 2025 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- 10:10.66 /srv/t2/src.firefox.i686-desktop.260301.111047.4950/firefox-148.0/gfx/skia/skia/modules/skcms/src/Transform_inl.h:818: 71: error: cannot tail-call: tail call production failed --- firefox-148.0/gfx/skia/skia/src/core/SkRasterPipeline.h.vanilla 2026-03-01 13:47:48.488465780 +0100 +++ firefox-148.0/gfx/skia/skia/src/core/SkRasterPipeline.h 2026-03-01 14:01:01.086399454 +0100 @@ -27,7 +27,7 @@ struct skcms_TransferFunction; #if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && \ - !defined(SK_CPU_LOONGARCH) && !defined(SK_CPU_PPC) && !defined(__sparc) && \ + !defined(SK_CPU_LOONGARCH) && !defined(SK_CPU_PPC) && !defined(__sparc) && !defined(__i386) && \ !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)) && \ !(defined(_WIN32) && defined(__GNUC__)) // [[clang::musttail]] is disabled for the Android version of Skia running on Windows as it --- firefox-148.0/toolkit/components/protobuf/src/google/protobuf/port_def.inc.vanilla 2026-03-01 13:47:48.492967914 +0100 +++ firefox-148.0/toolkit/components/protobuf/src/google/protobuf/port_def.inc 2026-03-01 13:54:56.778379948 +0100 @@ -254,8 +254,8 @@ #ifdef PROTOBUF_TAILCALL #error PROTOBUF_TAILCALL was previously defined #endif -#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \ - !defined(_ARCH_PPC) && !defined(__wasm__) && \ +#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && !defined(__i386) && \ + !defined(_ARCH_PPC) && !defined(__sparc__) && !defined(__wasm__) && !defined(__s390__) && \ !(defined(_MSC_VER) && defined(_M_IX86)) && \ !(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24) # ifndef PROTO2_OPENSOURCE --- firefox-148.0/gfx/skia/skia/modules/skcms/src/skcms_internals.h.vanilla 2026-03-01 14:20:21.657205603 +0100 +++ firefox-148.0/gfx/skia/skia/modules/skcms/src/skcms_internals.h 2026-03-01 14:23:54.268174198 +0100 @@ -53,13 +53,15 @@ && !defined(__riscv) \ && !defined(__powerpc__) \ && !defined(__loongarch__) \ + && !defined(__sparc) \ + && !defined(__i386) \ && !defined(_WIN32) && !defined(__SYMBIAN32__) #define SKCMS_HAS_MUSTTAIL 1 #endif #elif defined(__GNUC__) && !defined(SKCMS_HAS_MUSTTAIL) // GCC on riscv64 does not support our tail call functions // cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121784 - #if __has_cpp_attribute(clang::musttail) && !defined(__riscv) + #if __has_cpp_attribute(clang::musttail) && !defined(__riscv) && !defined(__i386) && !defined(__sparc) #define SKCMS_HAS_MUSTTAIL 1 #else #define SKCMS_HAS_MUSTTAIL 0