From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by sourceware.org (Postfix) with ESMTPS id D68353858004 for ; Fri, 13 Jan 2023 12:43:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D68353858004 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R561e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=cooper.qu@linux.alibaba.com;NM=1;PH=DS;RN=1;SR=0;TI=SMTPD_---0VZV-r.w_1673613799; Received: from localhost(mailfrom:cooper.qu@linux.alibaba.com fp:SMTPD_---0VZV-r.w_1673613799) by smtp.aliyun-inc.com; Fri, 13 Jan 2023 20:43:19 +0800 From: Xianmiao Qu To: gcc-patches@gcc.gnu.org Subject: [committed] C-SKY: Define SYSROOT_SUFFIX_SPEC. Date: Fri, 13 Jan 2023 20:43:19 +0800 Message-Id: <20230113124319.75544-1-cooper.qu@linux.alibaba.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-20.6 required=5.0 tests=BAYES_00,ENV_AND_HDR_SPF_MATCH,GIT_PATCH_0,KAM_DMARC_STATUS,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. --- 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} \ -- 2.32.1 (Apple Git-133)