aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-09-05 20:02:51 +0800
committerXi Ruoyao <xry111@xry111.site>2023-09-05 20:13:16 +0800
commitd4ec3d5a04a65ed388447ec9b2fd6530cd10af50 (patch)
tree949a423b41cb883c6a2755dab89c493e96ee5bce /gcc
parentfba0f47e4617e164716d3bce587fc6948088e225 (diff)
downloadgcc-d4ec3d5a04a65ed388447ec9b2fd6530cd10af50.zip
gcc-d4ec3d5a04a65ed388447ec9b2fd6530cd10af50.tar.gz
gcc-d4ec3d5a04a65ed388447ec9b2fd6530cd10af50.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/loongarch/loongarch-opts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h
index 7a58dab..3c6ff2e 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 */