https://gcc.gnu.org/g:abbb6f69bb0ab5b0c343741f383d0bd4438569e8
commit r13-10357-gabbb6f69bb0ab5b0c343741f383d0bd4438569e8 Author: Xi Ruoyao <[email protected]> Date: Thu Jun 11 08:06:07 2026 +0800 LoongArch: fix "macro redefined" warning This seems a rebase error when backporting the PR 113233 fix to releases/gcc-13. gcc/ PR target/113233 * config/loongarch/loongarch.cc (TARGET_OPTION_SAVE): Undefine before redefine. Diff: --- gcc/config/loongarch/loongarch.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/loongarch/loongarch.cc b/gcc/config/loongarch/loongarch.cc index 6739c53c57fe..a3b84619482a 100644 --- a/gcc/config/loongarch/loongarch.cc +++ b/gcc/config/loongarch/loongarch.cc @@ -6697,6 +6697,7 @@ loongarch_output_asm_load_canary (rtx reg, rtx canary, rtx tmp) #undef TARGET_OPTION_OVERRIDE #define TARGET_OPTION_OVERRIDE loongarch_option_override +#undef TARGET_OPTION_SAVE #define TARGET_OPTION_SAVE loongarch_option_save #undef TARGET_OPTION_RESTORE #define TARGET_OPTION_RESTORE loongarch_option_restore
