]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Remove the definition of CASE_VECTOR_SHORTEN_MODE.
authorLulu Cheng <chenglulu@loongson.cn>
Thu, 24 Jul 2025 11:07:25 +0000 (19:07 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Mon, 28 Jul 2025 01:30:42 +0000 (09:30 +0800)
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.

gcc/config/loongarch/loongarch.h

index d8977634b71aa1c020973a4c9ed7f90f6c28e538..5fc86652f5f8a516567a37f31ce1310f5371f266 100644 (file)
@@ -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