]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Fix unintentionally breakage in r14-3665
authorXi Ruoyao <xry111@xry111.site>
Tue, 5 Sep 2023 12:02:51 +0000 (20:02 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 5 Sep 2023 12:13:16 +0000 (20:13 +0800)
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

index 7a58dabdea85b31381633d6c1da582881197850c..3c6ff2e0d44152fdf88ee5665b127003f21554da 100644 (file)
@@ -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 */