]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Split the function loongarch_cpu_cpp_builtins into two functions.
authorLulu Cheng <chenglulu@loongson.cn>
Tue, 11 Feb 2025 12:05:13 +0000 (20:05 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 14 Feb 2025 07:48:37 +0000 (15:48 +0800)
commitc1af05f3d0320b5af98f27a76abfc9263bd42bb8
tree17f5d61b7ce25f745995530157f03176cd2bcfa4
parent46ce50b44e3d06f103c9136bc052a7354e07cfca
LoongArch: Split the function loongarch_cpu_cpp_builtins into two functions.

Split the implementation of the function loongarch_cpu_cpp_builtins into two parts:
  1. Macro definitions that do not change (only considering 64-bit architecture)
  2. Macro definitions that change with different compilation options.

gcc/ChangeLog:

* config/loongarch/loongarch-c.cc (builtin_undef): New macro.
(loongarch_cpu_cpp_builtins): Split to loongarch_update_cpp_builtins
and loongarch_define_unconditional_macros.
(loongarch_def_or_undef): New functions.
(loongarch_define_unconditional_macros): Likewise.
(loongarch_update_cpp_builtins): Likewise.
gcc/config/loongarch/loongarch-c.cc