diff mbox series

[v1,4/4] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299]

Message ID 20240221031050.24343-5-chenglulu@loongson.cn
State New
Headers show
Series Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12). | expand

Commit Message

Lulu Cheng Feb. 21, 2024, 3:10 a.m. UTC
From: Xi Ruoyao <xry111@xry111.site>

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 | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h
index bdf79ecc193..b4115dd7f85 100644
--- a/gcc/config/loongarch/loongarch-opts.h
+++ b/gcc/config/loongarch/loongarch-opts.h
@@ -95,4 +95,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 */