summaryrefslogtreecommitdiff
path: root/mail/thunderbird/files/patch-mozglue_misc_SSE.h
diff options
context:
space:
mode:
authorChristoph Moench-Tegeder <cmt@FreeBSD.org>2024-09-09 23:27:43 +0200
committerChristoph Moench-Tegeder <cmt@FreeBSD.org>2024-09-09 23:29:43 +0200
commit989ed863e49cb37b60f91fbd346b9cc4aa49401f (patch)
treea9b64b7d17cb1ccb9cc08dfb8239ebc7235248ae /mail/thunderbird/files/patch-mozglue_misc_SSE.h
parentsecurity/py-greenbone-feed-sync: Add missing dependency (diff)
mail/thunderbird: update to 128.2.0
Release Notes: https://www.thunderbird.net/en-US/thunderbird/128.2.0esr/releasenotes/
Diffstat (limited to 'mail/thunderbird/files/patch-mozglue_misc_SSE.h')
-rw-r--r--mail/thunderbird/files/patch-mozglue_misc_SSE.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/mail/thunderbird/files/patch-mozglue_misc_SSE.h b/mail/thunderbird/files/patch-mozglue_misc_SSE.h
new file mode 100644
index 000000000000..d60e1a0c9659
--- /dev/null
+++ b/mail/thunderbird/files/patch-mozglue_misc_SSE.h
@@ -0,0 +1,84 @@
+commit 70c3be521da1296f7ba47bd07b67927e43634d1b
+Author: Christoph Moench-Tegeder <cmt@burggraben.net>
+
+ disable SSE and friends in builds for legacy architectures
+
+diff --git gfx/thebes/moz.build gfx/thebes/moz.build
+index 71903756ea19..3591cc0f38e8 100644
+--- gfx/thebes/moz.build
++++ gfx/thebes/moz.build
+@@ -174,7 +174,7 @@ elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
+ ]
+
+ # Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
+-if CONFIG["INTEL_ARCHITECTURE"]:
++if CONFIG["INTEL_ARCHITECTURE"] and CONFIG['TARGET_CPU'] == 'x86_64':
+ SOURCES += ["gfxAlphaRecoverySSE2.cpp"]
+ # The file uses SSE2 intrinsics, so it needs special compile flags on some
+ # compilers.
+diff --git mozglue/misc/SSE.h mozglue/misc/SSE.h
+index 0b87366a8043..af0a0b38d23c 100644
+--- mozglue/misc/SSE.h
++++ mozglue/misc/SSE.h
+@@ -100,36 +100,50 @@
+ # define MOZILLA_PRESUME_MMX 1
+ # endif
+ # ifdef __SSE__
++# if !defined(__386__)
+ // It's ok to use SSE instructions based on the -march option (or
+ // the default for x86_64 or for Intel Mac).
+ # define MOZILLA_PRESUME_SSE 1
+ # endif
++# endif
+ # ifdef __SSE2__
++# if !defined(__386__)
+ // It's ok to use SSE2 instructions based on the -march option (or
+ // the default for x86_64 or for Intel Mac).
+ # define MOZILLA_PRESUME_SSE2 1
+ # endif
++# endif
+ # ifdef __SSE3__
++# if !defined(__386__)
+ // It's ok to use SSE3 instructions based on the -march option (or the
+ // default for Intel Mac).
+ # define MOZILLA_PRESUME_SSE3 1
+ # endif
++# endif
+ # ifdef __SSSE3__
++# if !defined(__386__)
+ // It's ok to use SSSE3 instructions based on the -march option.
+ # define MOZILLA_PRESUME_SSSE3 1
+ # endif
++# endif
+ # ifdef __SSE4A__
++# if !defined(__386__)
+ // It's ok to use SSE4A instructions based on the -march option.
+ # define MOZILLA_PRESUME_SSE4A 1
+ # endif
++# endif
+ # ifdef __SSE4_1__
++# if !defined(__386__)
+ // It's ok to use SSE4.1 instructions based on the -march option.
+ # define MOZILLA_PRESUME_SSE4_1 1
+ # endif
++# endif
+ # ifdef __SSE4_2__
++# if !defined(__386__)
+ // It's ok to use SSE4.2 instructions based on the -march option.
+ # define MOZILLA_PRESUME_SSE4_2 1
+ # endif
++# endif
+ # ifdef __AVX__
+ // It's ok to use AVX instructions based on the -march option.
+ # define MOZILLA_PRESUME_AVX 1
+@@ -144,8 +158,10 @@
+ # endif
+
+ # ifdef HAVE_CPUID_H
++# if !defined(__i386__)
+ # define MOZILLA_SSE_HAVE_CPUID_DETECTION
+ # endif
++# endif
+
+ #elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64))
+