From: Xi Ruoyao Date: Tue, 5 Sep 2023 12:02:51 +0000 (+0800) Subject: LoongArch: Fix unintentionally breakage in r14-3665 X-Git-Tag: basepoints/gcc-15~6433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ec3d5a04a65ed388447ec9b2fd6530cd10af50;p=thirdparty%2Fgcc.git 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. --- 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 */