public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5088] C-SKY: Define SYSROOT_SUFFIX_SPEC.
@ 2023-01-10 11:58 qu
  0 siblings, 0 replies; only message in thread
From: qu @ 2023-01-10 11:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d3328df5f5c9908c633fdcf1e3866a0a2a55c582

commit r13-5088-gd3328df5f5c9908c633fdcf1e3866a0a2a55c582
Author: Xianmiao Qu <cooper.qu@linux.alibaba.com>
Date:   Tue Jan 10 23:00:32 2023 +0800

    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.

Diff:
---
 gcc/config/csky/csky-linux-elf.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/config/csky/csky-linux-elf.h b/gcc/config/csky/csky-linux-elf.h
index 677c201b218..3f67af64c15 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}						\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-10 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 11:58 [gcc r13-5088] C-SKY: Define SYSROOT_SUFFIX_SPEC qu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).