在 2023/10/30 下午7:42, Xi Ruoyao 写道:
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:

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

Ok for trunk?
I have no problem with this submission, but I don't understand the circumstances surrounding the error.

  gcc/config/loongarch/loongarch-opts.h | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/gcc/config/loongarch/loongarch-opts.h 
b/gcc/config/loongarch/loongarch-opts.h
index 2756939b05d..f204828015e 100644
--- a/gcc/config/loongarch/loongarch-opts.h
+++ b/gcc/config/loongarch/loongarch-opts.h
@@ -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 */

Reply via email to