From d4ec3d5a04a65ed388447ec9b2fd6530cd10af50 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 5 Sep 2023 20:02:51 +0800 Subject: [PATCH] LoongArch: Fix unintentionally breakage in r14-3665 Fix a build failure with no system assembler or system old assembler. gcc/ChangeLog: * config/loongarch/loongarch-opts.h (HAVE_AS_EXPLICIT_RELOCS): Define to 0 if not defined yet. --- gcc/config/loongarch/loongarch-opts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h index 7a58dabdea85..3c6ff2e0d441 100644 --- a/gcc/config/loongarch/loongarch-opts.h +++ b/gcc/config/loongarch/loongarch-opts.h @@ -93,4 +93,8 @@ loongarch_update_gcc_opt_status (struct loongarch_target *target, while -m[no]-memcpy imposes a global constraint. */ #define TARGET_DO_OPTIMIZE_BLOCK_MOVE_P loongarch_do_optimize_block_move_p() +#ifndef HAVE_AS_EXPLICIT_RELOCS +#define HAVE_AS_EXPLICIT_RELOCS 0 +#endif + #endif /* LOONGARCH_OPTS_H */ -- 2.47.2