binutils-unaligned-default.patch raw

   1  commit 6537181f59ed186a341db621812a6bc35e22eaf6
   2  Author: fanquake <fanquake@gmail.com>
   3  Date:   Wed Apr 10 12:15:52 2024 +0200
   4  
   5      build: turn on -muse-unaligned-vector-move by default
   6  
   7      This allows us to avoid (more invasively) patching GCC, to avoid
   8      unaligned instruction use.
   9  
  10  diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
  11  index e0632681477..14a9653abdf 100644
  12  --- a/gas/config/tc-i386.c
  13  +++ b/gas/config/tc-i386.c
  14  @@ -801,7 +801,7 @@ static unsigned int no_cond_jump_promotion = 0;
  15   static unsigned int sse2avx;
  16   
  17   /* Encode aligned vector move as unaligned vector move.  */
  18  -static unsigned int use_unaligned_vector_move;
  19  +static unsigned int use_unaligned_vector_move = 1;
  20   
  21   /* Encode scalar AVX instructions with specific vector length.  */
  22   static enum
  23