]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299]
authorXi Ruoyao <xry111@xry111.site>
Mon, 30 Oct 2023 11:39:27 +0000 (19:39 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 31 Oct 2023 06:23:18 +0000 (14:23 +0800)
Now loongarch.md uses HAVE_AS_TLS, we need this to fix the failure
building a cross compiler if the cross assembler is not installed yet.

gcc/ChangeLog:

PR target/112299
* config/loongarch/loongarch-opts.h (HAVE_AS_TLS): Define to 0
if not defined yet.

gcc/config/loongarch/loongarch-opts.h

index 2756939b05db1dbfac3d654dbdfcdb31c0e0ba1e..f204828015e1bb0912395df6405104dfedf0a4bb 100644 (file)
@@ -101,4 +101,8 @@ loongarch_update_gcc_opt_status (struct loongarch_target *target,
 #define HAVE_AS_MRELAX_OPTION 0
 #endif
 
+#ifndef HAVE_AS_TLS
+#define HAVE_AS_TLS 0
+#endif
+
 #endif /* LOONGARCH_OPTS_H */