]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: macro instead enum for base abi type master trunk
authormengqinggang <mengqinggang@loongson.cn>
Fri, 8 Aug 2025 08:22:59 +0000 (16:22 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 12 Aug 2025 11:08:07 +0000 (19:08 +0800)
commit9467435253948b83fcb5f7430f6cd571236960d8
tree973eb2a2950e050e6b5e14a8b5c27f14d55d6601
parent6405c5c4419bef9589baf22daf162a6928af5441
LoongArch: macro instead enum for base abi type

enum can't be used in #if.
For #if expression, identifiers that are not macros,
which are all considered to be the number zero.

This patch may fix https://sourceware.org/bugzilla/show_bug.cgi?id=32776.

gcc/ChangeLog:

* config/loongarch/loongarch-def.h (ABI_BASE_LP64D): New macro.
(ABI_BASE_LP64F): New macro.
(ABI_BASE_LP64S): New macro.
(N_ABI_BASE_TYPES): New macro.
gcc/config/loongarch/loongarch-def.h