From patchwork Fri Sep 2 21:05:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp902667wro; Fri, 2 Sep 2022 14:06:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WUIKI6L4wC/t1Oi+YRdyrk9TKmB4JvpM0Zgjp2Wl9rz2FrY5pWk4VILBtqBzzLNC7olCu X-Received: by 2002:a05:6402:5ca:b0:445:c80a:3c2 with SMTP id n10-20020a05640205ca00b00445c80a03c2mr34599996edx.247.1662152764045; Fri, 02 Sep 2022 14:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662152764; cv=none; d=google.com; s=arc-20160816; b=mvMQ/ILlJy8t9THoJe726hk9JizxRSRP/ONYHpXlcAi/ddomq6H49Fe/BC+btJjcIl hqNlFsst72S6vB1hamwyTOC4/J+KzG4Ufn/pILRGNMDSvhknPuqtqe63506B3jz57cHh DjDVBa+JUSRpgBu6nFvOYz2CyAifyhsS9OoP0VAhRpNinGQLtZETEJwm9K9H2zswCmw8 1s4zLoCZqKw6TpYsSUQ6IKxOopUQNZIkFokWBUS15tpnXx6McU0ujHHRdBP2ZBfjZWfX lkvLCrRYM5c2xLYE9R4Q+KQ4qBlloEVhiSfSTJlm/4ylMyulAFgZtmlvicEZx/Jw9zJf 7Jxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=jU1T92BGVBpbJy2njGYQcJzvsBTGpkhN0umBcV7qjbQ=; b=QoCTWOHGtA+DYCMVD36qdqma0slY/Bckxu5mnIE5vhvE53My+Jue+MolapyocAcQ/t pOUK/leY8xH07Wm/Dq7OalmGR8SHEjnZzaqG7f26921i+SwM2DyNq+1d3yvUXe3LGSNd AEp1+4VSBw0dXIxZS3eSAQ7wQJl7AXOV/FCFlc/xsbUIKnNheCs/rfLfwLGU9i/ioKbE DMzSwctdIQSXTWreS8Pl4g6zno5hJbn5p4cecDNP0RlVg4DTvS4obq4xtQJ6z6fR/Q1U 7WvQJsDFF+Ie8ytdc6L63VNwJ7OqTRxjpWM/7sSPkCM2uafZy3z0YUs2YxrV+xDRrWjr KLOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="qXTu/VXW"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hz5-20020a1709072ce500b0073d9b010083si2707008ejc.93.2022.09.02.14.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 14:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="qXTu/VXW"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0EFD03858401 for ; Fri, 2 Sep 2022 21:06:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 9851B3858D1E for ; Fri, 2 Sep 2022 21:05:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9851B3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x62a.google.com with SMTP id d12so3016281plr.6 for ; Fri, 02 Sep 2022 14:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jU1T92BGVBpbJy2njGYQcJzvsBTGpkhN0umBcV7qjbQ=; b=qXTu/VXWmMYXzGXYfn0z1ROh4zh+R4198nSvha3nAWHv8Tcq9XRKDR0DNW1B9fKW66 kwe7Gge7Tn63pI3MdwukXuO2y/2sJta9NqQUyV0s89v4ZiI+PyelnwRdxxnAZfG18E4V Uz7NZtHKN7R4HlAZ8tOfAQNLdZghJ7B3egEog/X0x2J66jD6Xzszecga1sNsqAgPZu/0 nQlcK73aZ/N6JMyKjFGbaMfPFJhJFYFpFkZFIPLaqJ0Z9NuDsrWZHabhQsyAyw6xyxgp WfT1gv5bs4R4L2urMGiDxEIEVCcPqj5bka079YVEG8EKKrPKbIMTtCR8JAihwtiKeiZf 7Omg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jU1T92BGVBpbJy2njGYQcJzvsBTGpkhN0umBcV7qjbQ=; b=i438vf78D0iXqkkgv+/a5NwPSv1GT/hXoPFGqmjfLnoa8tgdY13SBztcwZDneC3ab2 N0nZydvjY4ZkpOPFgMfXPE4IdJNczSkCFlO7HPu4x5SwqGYqPqWjOycWrhIaVk8x4LPX zcfl4qvS5LFNz0QFygU0nDLK8i0sUJZ6TFeYGmRP/1ZpS5NlSln3qwSOyuow/hA5PZGs 2S1PKJdi+Nj2W5qIeQHV8hMJJNT4AGZQp+9+fuI2g1oK3Xgf0e38vht2LfcpEtj5IfPt xPQIaizWq6eqAK3wf7h0ceyLSBJ180RDCgNIKaq99q3Ou82bpuk2MYhx5NBHoDTCsZPh TQOw== X-Gm-Message-State: ACgBeo1vGeyfQdEjVldxyczw69p0RkeE40mYy6rp995nm+F4JhlwWVf4 aTi1rxaSgNcj2KSuz+mGce8NI1tP/Sp5OG4E X-Received: by 2002:a17:90a:8a15:b0:1fd:bcad:2471 with SMTP id w21-20020a17090a8a1500b001fdbcad2471mr6900547pjn.38.1662152735357; Fri, 02 Sep 2022 14:05:35 -0700 (PDT) Received: from vineetg-framework.ba.rivosinc.com (c-24-4-73-83.hsd1.ca.comcast.net. [24.4.73.83]) by smtp.gmail.com with ESMTPSA id p18-20020a170902e75200b0016c574aa0fdsm2123780plf.76.2022.09.02.14.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 14:05:35 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Subject: [PATCH v3] RISC-V: remove deprecate pic code model macro Date: Fri, 2 Sep 2022 14:05:33 -0700 Message-Id: <20220902210533.373663-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <8735d9a3qr.fsf@igel.home> References: <8735d9a3qr.fsf@igel.home> MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , Cc: collison@rivosinc.com, gnu-toolchain@rivosinc.com, Vineet Gupta , kito.cheng@gmail.com, Philipp Tomsich Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742609339633846211?= X-GMAIL-MSGID: =?utf-8?q?1742893496989174598?= Came across this deprecated symbol when looking around for -mexplicit-relocs handling in code Signed-off-by: Vineet Gupta --- gcc/config/riscv/riscv-c.cc | 5 ----- gcc/testsuite/gcc.target/riscv/predef-1.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-2.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-3.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-4.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-5.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-6.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-7.c | 3 --- gcc/testsuite/gcc.target/riscv/predef-8.c | 3 --- 9 files changed, 29 deletions(-) diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc index eb7ef09297e9..8d55ad598a9c 100644 --- a/gcc/config/riscv/riscv-c.cc +++ b/gcc/config/riscv/riscv-c.cc @@ -93,11 +93,6 @@ riscv_cpu_cpp_builtins (cpp_reader *pfile) break; case CM_PIC: - /* __riscv_cmodel_pic is deprecated, and will removed in next GCC release. - see https://github.com/riscv/riscv-c-api-doc/pull/11 */ - builtin_define ("__riscv_cmodel_pic"); - /* FALLTHROUGH. */ - case CM_MEDANY: builtin_define ("__riscv_cmodel_medany"); break; diff --git a/gcc/testsuite/gcc.target/riscv/predef-1.c b/gcc/testsuite/gcc.target/riscv/predef-1.c index 2e57ce6b3954..9dddc1849635 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-1.c +++ b/gcc/testsuite/gcc.target/riscv/predef-1.c @@ -57,9 +57,6 @@ int main () { #endif #if defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-2.c b/gcc/testsuite/gcc.target/riscv/predef-2.c index c85b3c9fd32a..755fe4ef7d8a 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-2.c +++ b/gcc/testsuite/gcc.target/riscv/predef-2.c @@ -57,9 +57,6 @@ int main () { #endif #if !defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-3.c b/gcc/testsuite/gcc.target/riscv/predef-3.c index 82a89d415809..513645351c09 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-3.c +++ b/gcc/testsuite/gcc.target/riscv/predef-3.c @@ -57,9 +57,6 @@ int main () { #endif #if !defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medany" -#endif -#if !defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_pic" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-4.c b/gcc/testsuite/gcc.target/riscv/predef-4.c index 5868d39eb67a..76b6feec6b6f 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-4.c +++ b/gcc/testsuite/gcc.target/riscv/predef-4.c @@ -57,9 +57,6 @@ int main () { #endif #if defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-5.c b/gcc/testsuite/gcc.target/riscv/predef-5.c index 4b2bd3835061..54a51508afbd 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-5.c +++ b/gcc/testsuite/gcc.target/riscv/predef-5.c @@ -57,9 +57,6 @@ int main () { #endif #if !defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-6.c b/gcc/testsuite/gcc.target/riscv/predef-6.c index 8e5ea366bd5e..f61709f7bf32 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-6.c +++ b/gcc/testsuite/gcc.target/riscv/predef-6.c @@ -57,9 +57,6 @@ int main () { #endif #if !defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medany" -#endif -#if !defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medpic" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-7.c b/gcc/testsuite/gcc.target/riscv/predef-7.c index 0bde299aef1a..41217554c4db 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-7.c +++ b/gcc/testsuite/gcc.target/riscv/predef-7.c @@ -57,9 +57,6 @@ int main () { #endif #if defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0; diff --git a/gcc/testsuite/gcc.target/riscv/predef-8.c b/gcc/testsuite/gcc.target/riscv/predef-8.c index 18aa591a6039..982056a53438 100644 --- a/gcc/testsuite/gcc.target/riscv/predef-8.c +++ b/gcc/testsuite/gcc.target/riscv/predef-8.c @@ -57,9 +57,6 @@ int main () { #endif #if !defined(__riscv_cmodel_medany) #error "__riscv_cmodel_medlow" -#endif -#if defined(__riscv_cmodel_pic) -#error "__riscv_cmodel_medlow" #endif return 0;