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

commit r16-2571-gec3c17b1685c6bb9a5a95c58c250ef2236a952b0
Author: Lulu Cheng <chengl...@loongson.cn>
Date:   Thu Jul 24 19:07:25 2025 +0800

    LoongArch: Remove the definition of CASE_VECTOR_SHORTEN_MODE.
    
    On LoongArch, the switch jump-table always stores absolute
    addresses, so there is no need to define the macro
    CASE_VECTOR_SHORTEN_MODE.
    
    gcc/ChangeLog:
    
            * config/loongarch/loongarch.h
            (CASE_VECTOR_SHORTEN_MODE): Delete.

Diff:
---
 gcc/config/loongarch/loongarch.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h
index d8977634b71a..5fc86652f5f8 100644
--- a/gcc/config/loongarch/loongarch.h
+++ b/gcc/config/loongarch/loongarch.h
@@ -823,8 +823,6 @@ typedef struct {
 
 #define CASE_VECTOR_MODE Pmode
 
-#define CASE_VECTOR_SHORTEN_MODE(MIN, MAX, BODY) Pmode
-
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #ifndef DEFAULT_SIGNED_CHAR
 #define DEFAULT_SIGNED_CHAR 1

Reply via email to