diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-10-30 19:39:27 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-10-31 14:23:18 +0800 |
commit | 6bf2cebe2bf49919c78814cb447d3aa6e3550d89 (patch) | |
tree | b673d19816ae19288a7409fe0783987625643f95 | |
parent | 5ee961b6f26575cb3d29572fa5653bb65330d949 (diff) | |
download | gcc-6bf2cebe2bf49919c78814cb447d3aa6e3550d89.zip gcc-6bf2cebe2bf49919c78814cb447d3aa6e3550d89.tar.gz gcc-6bf2cebe2bf49919c78814cb447d3aa6e3550d89.tar.bz2 |
LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299]
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.
-rw-r--r-- | gcc/config/loongarch/loongarch-opts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h index 2756939..f204828 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 */ |