diff options
author | Xianmiao Qu <cooper.qu@linux.alibaba.com> | 2023-01-10 23:00:32 +0800 |
---|---|---|
committer | Xianmiao Qu <cooper.qu@linux.alibaba.com> | 2023-01-10 19:57:49 +0800 |
commit | d3328df5f5c9908c633fdcf1e3866a0a2a55c582 (patch) | |
tree | 2682e9dbd01e29c4f02161a2a0d7ebd34b4ae4bf /gcc/config | |
parent | 4c7336a86449de41680e0640f7e353e4c1440bf9 (diff) | |
download | gcc-d3328df5f5c9908c633fdcf1e3866a0a2a55c582.zip gcc-d3328df5f5c9908c633fdcf1e3866a0a2a55c582.tar.gz gcc-d3328df5f5c9908c633fdcf1e3866a0a2a55c582.tar.bz2 |
C-SKY: Define SYSROOT_SUFFIX_SPEC.
The earlier patch
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575418.html
refine the way to generate sysroot suffix, but it can't find the
right path for all CPUs. The SYSROOT_SUFFIX_SPEC should be defined
to fix it.
gcc/
* config/csky/csky-linux-elf.h (SYSROOT_SUFFIX_SPEC): New.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/csky/csky-linux-elf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/csky/csky-linux-elf.h b/gcc/config/csky/csky-linux-elf.h index 677c201..3f67af6 100644 --- a/gcc/config/csky/csky-linux-elf.h +++ b/gcc/config/csky/csky-linux-elf.h @@ -65,6 +65,14 @@ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-cskyv2%{mfloat-abi=hard:-hf}%{mbig-endian:-be}.so.1" +#define SYSROOT_SUFFIX_SPEC \ + "%{mbig-endian:/big}" \ + "%{mcpu=ck807*:/ck807}" \ + "%{mcpu=ck860*:/ck860}" \ + "%{mcpu=ck800*:/ck800}" \ + "%{mfloat-abi=softfp:/soft-fp}" \ + "%{mfloat-abi=hard:/hard-fp}" + #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \ %{b} \ %{static:-Bstatic} \ |