From patchwork Fri Sep 2 20:33:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp893259wro; Fri, 2 Sep 2022 13:33:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7RptgDdZ57Q0hU/9MGKGl3alHwfAqmdd9WvEj3TCle28BQRwLMam33JekVanmTFqEBYOGQ X-Received: by 2002:a17:907:75e8:b0:73d:53dc:661d with SMTP id jz8-20020a17090775e800b0073d53dc661dmr27434101ejc.738.1662150829900; Fri, 02 Sep 2022 13:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662150829; cv=none; d=google.com; s=arc-20160816; b=LVINz+mlAOHHgTuhl+kEDaWNgXwJSdVnDqEN7Z3J8t6s0/LvvASYp9C1JsJ2lFveyc rTurmIqUvBISQjO6HLS3bc7SDLyY7WNkeoBs2kHFQ561jRh5it2S6PeW9wk3E+4NTqf2 qx28HdJlRpxSOA5A87e5o6a1T+2CAtkG3I0/7V6nynDf+g5wHMmR/ragrteRYFUJ6tba ZLsnEImMtx+8uIQ/O4z5jbDp2SDHn0R3dEEKKpuB+CZqYnEGz4SE9Vfs/voxJHL42Oc2 lB1cxOxwKBPR8B3VDv5t+Pw7uSYjvoxbu2UHktt1QEIwk5TVeCxNoTpq3RqDA24SarXD gY4A== 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=Hy1ruXeEQnRrngqFWrQErEzEQmTUenoi6jkNu/zVj28=; b=QJCXzNo92A3NNx/sC8JMza0GPVAiZkn1y939+DNayECPhdxFnP4TUWgYrO51ws4vDL M29TZNg+ipYsyHO22muMDcsKJyv6NQ2n6XKg2dgTrIelF9yBa0QarXibCYkSF0YSJ9h7 xwWSGKDuopqefSKGP7Hu2gT9+2dSK5JDP5twdBjKsCf6keLkY+Q12bWxlDi+hSV4DFtE 8+K1+VPVB+oTVgTrs0huMxU6fnT5HLKOmgO2L7sOBQl4bf9AadjrBYXGLV+/GikhWYeZ BuZGYlfPdx2VfMdQvdSkzw5bHf8qWzdoaLgIHpX5l1J7Ih0m6g55fSE1xzoRyOZobQrA lkSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=C9FTauX5; 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 f14-20020a0564021e8e00b0044628c209c3si2893629edf.632.2022.09.02.13.33.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 13:33:49 -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=C9FTauX5; 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 1BE9D3858022 for ; Fri, 2 Sep 2022 20:33:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 428953858D1E for ; Fri, 2 Sep 2022 20:33:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 428953858D1E 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-x62f.google.com with SMTP id m2so2957177pls.4 for ; Fri, 02 Sep 2022 13:33:15 -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=Hy1ruXeEQnRrngqFWrQErEzEQmTUenoi6jkNu/zVj28=; b=C9FTauX5g4MKXOnTdyyhKHWQqsKvGXaLiq8sShVTUrpf4s5Gj2TcbT5iji21v5BfGf +zVKGQXK2yGkv4q06elcJJJYVbQ34l0ggh3PYMHjZCKFAbEfykdroefM8Mm4pdOBQJu0 jcPi7/0gnTVWgHwkAflXSYSirTvhdjHH3ZrAScYLW83IsPCJIX0TmICtQv4Lx6snsPtX jjYXA6hOfpMLpBBlaVPQ4e3xLsflJx3GCb5oIzBaombsWB02i1tT16SFSaLP4XHW3vBv wkRkIlpr/gJGdrKkdICI/5V12+PZkzI8kcVsnhT3rG2iC2GinOlnNkto7Be8DlNGiO5x moqg== 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=Hy1ruXeEQnRrngqFWrQErEzEQmTUenoi6jkNu/zVj28=; b=RNLeBibXCSKIJnYKlVCw4NS6v5LzxYj/58I1XcqV9o9mUzeS3L723KOoOOkVNw3UBz aTTxcYxXuboO1OBsbqpdvlBfyr2lPNk4APjH0NAJuYZ0ek9Z3McDaSjeU95eAGTaXCpy 8mrGrzJqG3bsg4jX5JhYTyvIlnsoRHsjnNaEKvHOaDVViXgj1xqDWmxoftMIVZh2z/IQ lyB6QHfP+mgKreUy+TG7dexmXLGH4MVZzVK4h/sFzVIOLOwYiUkukqx7NqoYdTGrrZa2 JkBefclfqbtRBzNSZR1/QVzSd2WjVFcuwcRkTeiG4hl/T0/ivnsNwabxWqxNXp7xjQRc Fc5A== X-Gm-Message-State: ACgBeo38CsM2RR3QHSoLiW8zG9bkWbdE8HuaWn9raz8jokFopwtr0zxy R1IOo6VET67TRrAPjgWo1lCX7mrEfrRk0MLhg4g= X-Received: by 2002:a17:902:db06:b0:16f:16b7:69d0 with SMTP id m6-20020a170902db0600b0016f16b769d0mr36365554plx.145.1662150793995; Fri, 02 Sep 2022 13:33:13 -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 je2-20020a170903264200b001751d0ac555sm2066297plb.148.2022.09.02.13.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 13:33:13 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Subject: [PATCH v2] RISC-V: remove deprecate pic code model macro Date: Fri, 2 Sep 2022 13:33:10 -0700 Message-Id: <20220902203310.370711-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.1 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?1742891468268960600?= 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 | 3 --- 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, 27 deletions(-) diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc index eb7ef09297e9..bba72cf77a82 100644 --- a/gcc/config/riscv/riscv-c.cc +++ b/gcc/config/riscv/riscv-c.cc @@ -93,9 +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: 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;