]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: define preprocessing macros "__loongarch_{arch,tune}"
authorYang Yujie <yangyujie@loongson.cn>
Mon, 28 Aug 2023 01:32:16 +0000 (09:32 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 5 Sep 2023 03:48:00 +0000 (11:48 +0800)
commitf095da2c5a452df7a7e184e0dcb5bb1538dd9086
tree61b8e0363b3b2ed02c6a66c98f12635a80cf840b
parentbb4a81988c6eb112837c0b38c8e2d352e3bcb01d
LoongArch: define preprocessing macros "__loongarch_{arch,tune}"

These are exported according to the LoongArch Toolchain Conventions[1]
as a replacement of the obsolete "_LOONGARCH_{ARCH,TUNE}" macros,
which are expanded to strings representing the actual architecture
and microarchitecture of the target.

[1] currently relased at https://github.com/loongson/LoongArch-Documentation
    /blob/main/docs/LoongArch-toolchain-conventions-EN.adoc

gcc/ChangeLog:

* config/loongarch/loongarch-c.cc: Export macros
"__loongarch_{arch,tune}" in the preprocessor.
gcc/config/loongarch/loongarch-c.cc