From patchwork Fri Jan 13 12:42:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianmiao Qu X-Patchwork-Id: 1725937 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=qWCUU9Hb; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nth1Z0Sv5z23dq for ; Fri, 13 Jan 2023 23:44:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 068F53881D12 for ; Fri, 13 Jan 2023 12:44:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 068F53881D12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673613840; bh=AKjlncCrAwWx6HaThm4bh2GEPyT92YSzcW9A6To/Osg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=qWCUU9HbeBVSsr8nHvPNamo4IB7NdCihfwSmJ5R/PJnDj5Tws7QNg4tQf/LuZlR8k r1ktq02pDoyFwytp4rSZn/tNGtfog+vr2POz5KOOlYEuxRKL08ZcDKvCH4cuc1yEv1 7ibkErvNsMcDRBuWL+0NbnreALFw40D4Itd5ZTf4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by sourceware.org (Postfix) with ESMTPS id 65D6538560A6 for ; Fri, 13 Jan 2023 12:42:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65D6538560A6 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R181e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=ay29a033018045170; MF=cooper.qu@linux.alibaba.com; NM=1; PH=DS; RN=1; SR=0; TI=SMTPD_---0VZUooom_1673613754; Received: from localhost(mailfrom:cooper.qu@linux.alibaba.com fp:SMTPD_---0VZUooom_1673613754) by smtp.aliyun-inc.com; Fri, 13 Jan 2023 20:42:35 +0800 To: gcc-patches@gcc.gnu.org Subject: [committed] C-SKY: Add missing builtin defines for soft float abi. Date: Fri, 13 Jan 2023 20:42:34 +0800 Message-Id: <20230113124234.75388-1-cooper.qu@linux.alibaba.com> X-Mailer: git-send-email 2.32.1 (Apple Git-133) MIME-Version: 1.0 X-Spam-Status: No, score=-20.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH, GIT_PATCH_0, KAM_DMARC_STATUS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Xianmiao Qu via Gcc-patches From: Xianmiao Qu Reply-To: Xianmiao Qu Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" The builtin defines for soft float abi are: '__csky_soft_float_abi__' and '__CSKY_SOFT_FLOAT_ABI__'. gcc/ * config/csky/csky.cc (csky_cpu_cpp_builtins): Add builtin defines for soft float abi. --- gcc/config/csky/csky.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config/csky/csky.cc b/gcc/config/csky/csky.cc index b0e50cfef3e..ddc6954dad1 100644 --- a/gcc/config/csky/csky.cc +++ b/gcc/config/csky/csky.cc @@ -396,6 +396,11 @@ csky_cpu_cpp_builtins (cpp_reader *pfile) builtin_define ("__csky_hard_float_abi__"); builtin_define ("__CSKY_HARD_FLOAT_ABI__"); } + else + { + builtin_define ("__csky_soft_float_abi__"); + builtin_define ("__CSKY_SOFT_FLOAT_ABI__"); + } if (TARGET_SINGLE_FPU) { builtin_define ("__csky_hard_float_fpu_sf__");