https://gcc.gnu.org/g:c4f8c7c5c0081662d204761ff275b0ca7689c592

commit r16-8457-gc4f8c7c5c0081662d204761ff275b0ca7689c592
Author: Takayuki 'January June' Suwa <[email protected]>
Date:   Sun Mar 29 17:10:07 2026 +0900

    xtensa: Remove TARGET_DIFFERENT_ADDR_DISPLACEMENT_P target hook
    
    Since the previous commit 6924c00c8710ec95834e21f8d68b10f2d09a8680 ("xtensa:
    Make all memory constraints special"), it has been discovered that the
    definition of TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, which was previously
    introduced to obtain appropriate memory reference displacements (commit
    211459e12147e9ed42c0a0947b1b95b551e03ef3), is no longer necessary.  In other
    words:
    
      - The order of the movsi_internal MD pattern alternatives has been re-
        arranged so that memory references with shorter displacements take
        precedence
    
      - Furthermore, since all memory constraints are now "special," address
        reload operations that explicitly add the displacement to the base
        register and then adopt a 0-displacement reference are no longer
        performed and are simply skipped
    
    Therefore, this patch removes the definition of
    TARGET_DIFFERENT_ADDR_DISPLACEMENT_P.
    
    gcc/ChangeLog:
    
            * config/xtensa/xtensa.cc (TARGET_DIFFERENT_ADDR_DISPLACEMENT_P):
            Remove.

Diff:
---
 gcc/config/xtensa/xtensa.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index dbbea0799da7..60de3e7bb088 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -366,9 +366,6 @@ static rtx_insn *xtensa_md_asm_adjust (vec<rtx> &, vec<rtx> 
&,
 #undef TARGET_MAX_ANCHOR_OFFSET
 #define TARGET_MAX_ANCHOR_OFFSET 1020
 
-#undef TARGET_DIFFERENT_ADDR_DISPLACEMENT_P
-#define TARGET_DIFFERENT_ADDR_DISPLACEMENT_P hook_bool_void_true
-
 #undef TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
 #define TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS 
xtensa_ira_change_pseudo_allocno_class

Reply via email to