Message ID | 20220830174830.224541-2-vineetg@rivosinc.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp1909709wro; Tue, 30 Aug 2022 10:49:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR6SGPys6cIKd35khu9CC3MYebeBk/dDyDcea6S7Ep860MXoVOKDcTmyXhQbodWODdqtKINS X-Received: by 2002:a17:907:6d03:b0:741:9b9d:ad8b with SMTP id sa3-20020a1709076d0300b007419b9dad8bmr6706261ejc.197.1661881770749; Tue, 30 Aug 2022 10:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661881770; cv=none; d=google.com; s=arc-20160816; b=mT7gXVCKXVqm699fb2+iPJ5Oa8/LoCt3ZnOa6oVqeg4kGVFM6ad6yur0QfzXM2Y5GR /13JS3stQCGvB0Rie9shevJ9uy9eVuVehqoQqfm2KnDdqEzAaqQPW0phcuO6Y0ih//UO jDhhRMRnHhgdc4meF4JqbGb4W+tEbAr5atHgybD86nI5AgabXN7bhgFmgxvZ+BkC6Dkz yX99xIJpH0nWq1m41SPKdjbz0yaX5oCy9mPqNc/z91Lm+sCSrbLpkf5h7V5yoEuPY+eK wAqp/HfozlnDjSFjMi0BObiEgB4oPYnjftNue82+3ANdaxXOPnXHoy2h52u+s8/nH8hx sXaQ== 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=AFCz9UOMtbPufI4ENE9VLhWmElyty9LDXwrn3Qax/TY=; b=U01ennmurkLXqG43RR+VYM/ztGq+zetw082XYnPcs1wNIHiMlGQw0nE3ovjNpNdgrQ 1SJgi55a9R68KsnntEQvrq/e2yCpReaVjxpufeoTnIuHfeLQAT0O39hqHRCQ3di23ncm A3j8ov4xibOu0Mljqz5bpnXZ/EMlS8QhEw62169U7sNOFI9PshT7NVJFSeUPVHViBIdj OzWUhsC4ILDscxj/ci0q7CZVMymFxaxW791ZW9xukaIvcdDuZeWp2eYjoJZmETAsVClm EHYKDjzEI2n59HKrTJVvO1S8KSklqltaCWL4kwxOsgIOGC2Zwdts9TZqx2GbV0OB0h0O GpyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=4WzbSJca; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sd4-20020a1709076e0400b00718d1cddac1si10736044ejc.833.2022.08.30.10.49.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 10:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=4WzbSJca; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 747E33AA9412 for <ouuuleilei@gmail.com>; Tue, 30 Aug 2022 17:49:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id E7641385C401 for <gcc-patches@gcc.gnu.org>; Tue, 30 Aug 2022 17:48:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E7641385C401 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-pf1-x433.google.com with SMTP id 76so12075393pfy.3 for <gcc-patches@gcc.gnu.org>; Tue, 30 Aug 2022 10:48: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; bh=AFCz9UOMtbPufI4ENE9VLhWmElyty9LDXwrn3Qax/TY=; b=4WzbSJcampfgk5CqVBxnTrs4SslkFIEKTSSL9tGZ0aA9jayjNvbjMN9TJr9obdF4Nc DXK90rp9q/gBqY+XGFJXX8jhSQ8dx2/El2ksS5MxEbrJdi9rDWMRjTizJI2KgVLcbdVH n7oUEI5GFECkB/b0vb8lB5B6ucaYpf1Mvmjh3A283NAH8hd7wWw/fEkfaVHTiV+VLxC7 DkynzXuARGdy9Zp1ODCUSUHpZsPXZ6mrcU3ioxbfiC76LF+10fL37zUET5OHRhXAklDb +s3vIjWK9rdg8gRJGQPjOnbndQVuGDv34ncl2VooGqBXlYiHRE4PaSeTdsfKa1L3RumK XfQw== 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; bh=AFCz9UOMtbPufI4ENE9VLhWmElyty9LDXwrn3Qax/TY=; b=aqq/CbeU7B+GzwOE7BR9z/eOsCgR49fatH+Jvwcp70uJi3tarWyPZid43jv0Mt/kiR RoM4Xa+1xovZq6YXU0IlUmWQO59cgq2zmIJQlIM2WQVmJIXdWVGe+gQKVbiMxqg9+ZJg 3rLPcz0m1a9sKYTz2hlLgxbzw++Dt6fgER4RRciNuw0Kk04yHx4vT6DK/9x5vFP+f3HO fZYp0AxaTzaH4f+ck0aNe3P6y0QohqfGR8Y1xKOflgON//B7l6U0KAIC83Lz1B38bakL SHwNA2qlYL3AojEJG+0NU2uUtuIwOAdVfxDFZtjHbnnw2ebiF0js2PGFCU+Kc7CUzVYw VLLw== X-Gm-Message-State: ACgBeo1tFxw5itzQL4t7TQWoy3SzxqNcBfhit8lUN4+2m4KGNfhxIPj8 ZG1F4gFPSdCpCDhLSwnsp0INnrXCr/48K57jCdY= X-Received: by 2002:a63:296:0:b0:42f:a827:6963 with SMTP id 144-20020a630296000000b0042fa8276963mr2453563pgc.167.1661881715703; Tue, 30 Aug 2022 10:48:35 -0700 (PDT) Received: from vineetg-framework.hq.rivosinc.com ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id w5-20020aa79545000000b005386162bc2asm3618852pfq.92.2022.08.30.10.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 10:48:34 -0700 (PDT) From: Vineet Gupta <vineetg@rivosinc.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/2] RISC-V: remove deprecate pic code model macro Date: Tue, 30 Aug 2022 10:48:29 -0700 Message-Id: <20220830174830.224541-2-vineetg@rivosinc.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220830174830.224541-1-vineetg@rivosinc.com> References: <20220830174830.224541-1-vineetg@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: collison@rivosinc.com, gnu-toolchain@rivosinc.com, Vineet Gupta <vineetg@rivosinc.com>, kito.cheng@gmail.com, Philipp Tomsich <philipp.tomsich@vrull.eu> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742609339633846211?= X-GMAIL-MSGID: =?utf-8?q?1742609339633846211?= |
Series |
PIC cleanup
|
|
Commit Message
Vineet Gupta
Aug. 30, 2022, 5:48 p.m. UTC
Came across this deprecated symbol when looking around for
-mexplicit-relocs handling in code
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
---
gcc/config/riscv/riscv-c.cc | 3 ---
1 file changed, 3 deletions(-)
Comments
On Tue, 30 Aug 2022 10:48:29 PDT (-0700), Vineet Gupta wrote: > Came across this deprecated symbol when looking around for > -mexplicit-relocs handling in code > > Signed-off-by: Vineet Gupta <vineetg@rivosinc.com> > --- > gcc/config/riscv/riscv-c.cc | 3 --- > 1 file changed, 3 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: It looks like some of the tests (gcc/testsuite/gcc.target/riscv/predef-3.c, for example) are checking for __riscv_cmodel_pic. From looking at them I'd expect them to fail, but even if they're not we should clean them up.
Could you also clean up all __riscv_cmodel_pic checking in gcc/testsuite/gcc.target/riscv/predef-*.c? On Wed, Aug 31, 2022 at 10:58 PM Palmer Dabbelt <palmer@rivosinc.com> wrote: > > On Tue, 30 Aug 2022 10:48:29 PDT (-0700), Vineet Gupta wrote: > > Came across this deprecated symbol when looking around for > > -mexplicit-relocs handling in code > > > > Signed-off-by: Vineet Gupta <vineetg@rivosinc.com> > > --- > > gcc/config/riscv/riscv-c.cc | 3 --- > > 1 file changed, 3 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: > > It looks like some of the tests > (gcc/testsuite/gcc.target/riscv/predef-3.c, for example) are checking > for __riscv_cmodel_pic. From looking at them I'd expect them to fail, > but even if they're not we should clean them up.
On 8/31/22 07:57, Palmer Dabbelt wrote: > On Tue, 30 Aug 2022 10:48:29 PDT (-0700), Vineet Gupta wrote: >> Came across this deprecated symbol when looking around for >> -mexplicit-relocs handling in code >> >> Signed-off-by: Vineet Gupta <vineetg@rivosinc.com> >> --- >> gcc/config/riscv/riscv-c.cc | 3 --- >> 1 file changed, 3 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: > > It looks like some of the tests > (gcc/testsuite/gcc.target/riscv/predef-3.c, for example) are checking > for __riscv_cmodel_pic. From looking at them I'd expect them to fail, > but even if they're not we should clean them up. Aah, I did miss removing them and looks like there was a snafu in my test setup as well. I'm rerunning the tests with the fix and will post a v2 after tests come out clean. Thx, -Vineet
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: