]> 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)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 22 Feb 2024 03:24:29 +0000 (11:24 +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.

(cherry picked from commit 6bf2cebe2bf49919c78814cb447d3aa6e3550d89)

gcc/config/loongarch/loongarch-opts.h

index edd41c82b1774e2e028c2f1f6a74b879f60987aa..02184e2991a6763849dd370ee52d8eecded44c24 100644 (file)
@@ -100,4 +100,8 @@ loongarch_config_target (struct loongarch_target *target,
 #define HAVE_AS_COND_BRANCH_RELAXATION 0
 #endif
 
+#ifndef HAVE_AS_TLS
+#define HAVE_AS_TLS 0
+#endif
+
 #endif /* LOONGARCH_OPTS_H */