mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
guix: replace GCC unaligned VMOV patch with binutils patch
Rather than invasively patching GCC. Given we have binutils 2.38 available, we can patch it to flip the default for `-muse-unaligned-vector-move`.
This commit is contained in:
22
contrib/guix/patches/binutils-unaligned-default.patch
Normal file
22
contrib/guix/patches/binutils-unaligned-default.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
commit 6537181f59ed186a341db621812a6bc35e22eaf6
|
||||
Author: fanquake <fanquake@gmail.com>
|
||||
Date: Wed Apr 10 12:15:52 2024 +0200
|
||||
|
||||
build: turn on -muse-unaligned-vector-move by default
|
||||
|
||||
This allows us to avoid (more invasively) patching GCC, to avoid
|
||||
unaligned instruction use.
|
||||
|
||||
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
|
||||
index e0632681477..14a9653abdf 100644
|
||||
--- a/gas/config/tc-i386.c
|
||||
+++ b/gas/config/tc-i386.c
|
||||
@@ -801,7 +801,7 @@ static unsigned int no_cond_jump_promotion = 0;
|
||||
static unsigned int sse2avx;
|
||||
|
||||
/* Encode aligned vector move as unaligned vector move. */
|
||||
-static unsigned int use_unaligned_vector_move;
|
||||
+static unsigned int use_unaligned_vector_move = 1;
|
||||
|
||||
/* Encode scalar AVX instructions with specific vector length. */
|
||||
static enum
|
||||
Reference in New Issue
Block a user