Message ID | 20230513232321.279733-1-rep.dot.nop@gmail.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6017178vqo; Sat, 13 May 2023 16:32:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xAKzHre7TlQZJHcqp4nARmXpVyZf2LelGObVKR4Yw9ah3ZxsFXDxBeDYzbOKejGeEZCqz X-Received: by 2002:a17:907:160d:b0:966:5035:6973 with SMTP id hb13-20020a170907160d00b0096650356973mr26214957ejc.50.1684020720308; Sat, 13 May 2023 16:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684020720; cv=none; d=google.com; s=arc-20160816; b=bLYK3cq4DDsuAzWHZW6d/8Kfv36XF/GRNjHBxcdHxT+8IcYxyQfUERfeBtl5cK0ON6 TIepDjzji8MiYfqQl16qjLQQHefFsvCHswaj9NFTORrQtUdVuhqRsahsuhiqzwWIimSi zboK+CY2E6j/boxh4dwFUJmXwhhjkAYDHkLn6rdTAvgb5lRH/GtsTQEIIT+gindsrFn3 kx8aC6JnEIQZZuSr6SX1NDj4/ftI3Zor1SKSD3+kw/I+iLF/5OoPY4ku+e4aiaNrmACr x1/ZO4pZvc781G7VSRw1i74JCnZ/ZoKgtpaR93pJH9mZ/TkU9WsVLabv+71BF7zkbuDe CXQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=q8znd8zsXqX45pFyYzXeNSsifA1gP+kf3WDZ8FoZ4rs=; b=aVhyKkIu54xG7pJcRYf6PUDbw/Hsd29wLnWkzwa3EiDjZaAF9AckbT/wjseTxbr8hm OVGRedg9xxrr1s2XU6KtheCqGJK2IqZss0afRQ5l2uDFB2PVvbYxx5IFIVwz0qsIFx/i 2lA+mcmglJY9/IU1QlkaLERdtClLkFsAW4Ec0p6aGwGI58ZFAwB2IeLnJGpsgAAlIwig T+nbPkQOagdrAv3oylBhXdeUYSdElfu9QR5fb/y/5ur3sI37zLxJDl0qaW9dsP3m1uXc X8VgfeEliXDjI6Wcqb0IgCVrwSmGLohYhArUGk/ehWDDI31kvyL4sa20jLXJqAe2m0U9 WFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=t4MFgl3s; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id et21-20020a170907295500b0095389804380si8337563ejc.220.2023.05.13.16.32.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 May 2023 16:32:00 -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=pass header.i=@gcc.gnu.org header.s=default header.b=t4MFgl3s; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA6753836F3D for <ouuuleilei@gmail.com>; Sat, 13 May 2023 23:28:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA6753836F3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684020534; bh=q8znd8zsXqX45pFyYzXeNSsifA1gP+kf3WDZ8FoZ4rs=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=t4MFgl3sMx/k6UiZVeun7wbvPmlA/Hys8aDs3/q6Pj7SU2MDPo7iwBAJPc7t0P7qO HbX3YZoxiheqLcgOkpiMhlo3Tk60oHwMJ67zBUP10SpXguRfBXw+JCOzmCfcMHbqIz 5yayR8UzVcsS+cd2CMvmsxz7+2WXGlsMMTu4/SwQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 81D1B3858422; Sat, 13 May 2023 23:23:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 81D1B3858422 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-96aadfb19d7so380062566b.2; Sat, 13 May 2023 16:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684020232; x=1686612232; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q8znd8zsXqX45pFyYzXeNSsifA1gP+kf3WDZ8FoZ4rs=; b=SZfT5ZtZpUDNWxI43y37z+CSukXdqeB+/6ER5eSKX7+Zhub4WP6DDBfT4jxSaaikzu wbNd9vVMIE49ls3+kK+6LiSroqMx2y8jJjvljntE37pNPbVflU1BgdvWj6NVCaGR5eJU bWJ5pyVznp3sCTyImMzls/o2AOXzHPweb2Ody/g+a3ekG5PFIwcjBB6/cxEopVFalEMe nhn/swO6L19rSWCUgO08AO6NiY6GlNwpyxGsBASaKptku6j/Myd19SlPQUj+QZEQnrnv U1affsQH4DhFKI97cYZzpiMazw1XdkF9zlJtMx5xH6+RUSBQgFRkpPh8zu8kWo2B0812 z68Q== X-Gm-Message-State: AC+VfDyXHqK0fXG/BHWPfCQBghdM2QgEH+2ILg+KqnAlyt1PaDEaQOXb +K3bqRMtuuLtIibTpEeCZYSP/pnRDcA= X-Received: by 2002:a17:907:1c9a:b0:966:2fdf:f66c with SMTP id nb26-20020a1709071c9a00b009662fdff66cmr26869527ejc.3.1684020232325; Sat, 13 May 2023 16:23:52 -0700 (PDT) Received: from nbbrfq ([2001:871:227:ce8b:afc3:c345:e1dd:564e]) by smtp.gmail.com with ESMTPSA id nr1-20020a1709068b8100b0094f1b8901e1sm7387119ejc.68.2023.05.13.16.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 May 2023 16:23:48 -0700 (PDT) Received: from b by nbbrfq with local (Exim 4.96) (envelope-from <b@localhost>) id 1pxyaZ-001AmE-2v; Sun, 14 May 2023 01:23:47 +0200 To: gcc-patches@gcc.gnu.org Cc: Bernhard Reutner-Fischer <aldot@gcc.gnu.org> Subject: [PATCH 00/14] use _P() defines from tree.h Date: Sun, 14 May 2023 01:23:07 +0200 Message-Id: <20230513232321.279733-1-rep.dot.nop@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SCC_5_SHORT_WORD_LINES, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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> From: Bernhard Reutner-Fischer via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> 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?1765823711116604117?= X-GMAIL-MSGID: =?utf-8?q?1765823711116604117?= |
Series |
use _P() defines from tree.h
|
|
Message
Bernhard Reutner-Fischer
May 13, 2023, 11:23 p.m. UTC
From: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
Dear maintainers
I propose the following mechanical change to use the defines in tree.h.
(Common convention is to use the defines as per tree.h, which is what we
keep telling people.)
Exceptions applied to the generator here:
NULL_TREE # we want to retain "NULL"
CAN_HAVE_RANGE_P # keep CAN_HAVE_LOCATION_P; Looks confused otherwise.
No fallback declarations considered. I.e. picks TREE_CODE_CLASS true
branch (to pick the checking variants of tree access) and skips the
whole true arm when seeing an extension (like DECL_RTL_KNOWN_SET).
Case enumerations ignored (CASE_FLT_FN CASE_FLT_FN_FLOATN_NX
CASE_BUILT_IN_TM_STORE).
Only _P() named macros without loops are considered for starters.
Bootstrapped on x86_64-unknown-linux with
--enable-languages=c,fortran,c++,ada,d,go,lto,jit,objc,obj-c++,rust
(hence not m2) --enable-checking=yes --enable-multilib --disable-libstdcxx-pch
and regtested without regressions against r14-619-g2499540e9abb55 on
--target_board=unix'{-m32,-m64}'
Ok for trunk?
PS: I refrain from Ccing about all frontend maintainers in the hopes to
apply this squashed.
Bernhard Reutner-Fischer (14):
ada: use _P() defines from tree.h
analyzer: use _P() defines from tree.h
gcc/config/*: use _P() defines from tree.h
c++: use _P() defines from tree.h
m2: use _P() defines from tree.h
lto: use _P() defines from tree.h
d: use _P() defines from tree.h
fortran: use _P() defines from tree.h
rust: use _P() defines from tree.h
c: use _P() defines from tree.h
objc: use _P() defines from tree.h
go: use _P() defines from tree.h
omp: use _P() defines from tree.h
gcc: use _P() defines from tree.h
gcc/ada/gcc-interface/decl.cc | 17 +++---
gcc/ada/gcc-interface/trans.cc | 20 +++----
gcc/ada/gcc-interface/utils.cc | 10 ++--
gcc/ada/gcc-interface/utils2.cc | 16 +++---
gcc/alias.cc | 2 +-
gcc/analyzer/region-model-manager.cc | 8 +--
gcc/analyzer/region-model.cc | 2 +-
gcc/analyzer/region.cc | 2 +-
gcc/attribs.cc | 11 ++--
gcc/builtins.cc | 8 +--
gcc/c-family/c-ada-spec.cc | 6 +--
gcc/c-family/c-common.cc | 32 ++++++------
gcc/c-family/c-common.h | 2 +-
gcc/c-family/c-omp.cc | 5 +-
gcc/c-family/c-ubsan.cc | 2 +-
gcc/c-family/c-warn.cc | 6 +--
gcc/c/c-convert.cc | 4 +-
gcc/c/c-decl.cc | 6 +--
gcc/c/c-parser.cc | 4 +-
gcc/c/c-typeck.cc | 52 +++++++++----------
gcc/c/gimple-parser.cc | 2 +-
gcc/cfgexpand.cc | 2 +-
gcc/cgraph.h | 4 +-
gcc/config/aarch64/aarch64.cc | 4 +-
gcc/config/alpha/alpha.cc | 6 +--
gcc/config/arc/arc.cc | 8 +--
gcc/config/arm/arm.cc | 16 +++---
gcc/config/arm/unknown-elf.h | 2 +-
gcc/config/avr/avr.cc | 11 ++--
gcc/config/bfin/bfin.cc | 2 +-
gcc/config/bpf/bpf.cc | 2 +-
gcc/config/c6x/c6x.cc | 4 +-
gcc/config/csky/csky.cc | 8 ++-
gcc/config/darwin-c.cc | 2 +-
gcc/config/darwin.cc | 2 +-
gcc/config/epiphany/epiphany.cc | 3 +-
gcc/config/epiphany/epiphany.h | 6 +--
gcc/config/frv/frv.cc | 4 +-
gcc/config/gcn/gcn-tree.cc | 2 +-
gcc/config/gcn/gcn.cc | 4 +-
gcc/config/h8300/h8300.cc | 2 +-
gcc/config/i386/i386-expand.cc | 2 +-
gcc/config/i386/i386.cc | 20 +++----
gcc/config/i386/winnt-cxx.cc | 12 ++---
gcc/config/i386/winnt.cc | 6 +--
gcc/config/ia64/ia64.cc | 6 +--
gcc/config/iq2000/iq2000.cc | 8 ++-
gcc/config/lm32/lm32.cc | 2 +-
gcc/config/loongarch/loongarch.cc | 2 +-
gcc/config/m32c/m32c.cc | 2 +-
gcc/config/mcore/mcore.cc | 6 +--
gcc/config/microblaze/microblaze.cc | 2 +-
gcc/config/mips/mips.cc | 2 +-
gcc/config/mmix/mmix.cc | 4 +-
gcc/config/nvptx/nvptx.cc | 8 +--
gcc/config/pa/pa.cc | 10 ++--
gcc/config/pa/pa.h | 4 +-
gcc/config/pa/som.h | 2 +-
gcc/config/pdp11/pdp11.cc | 2 +-
gcc/config/riscv/riscv.cc | 4 +-
gcc/config/rl78/rl78.cc | 4 +-
gcc/config/rs6000/aix.h | 4 +-
gcc/config/rs6000/darwin.h | 6 +--
gcc/config/rs6000/freebsd64.h | 4 +-
gcc/config/rs6000/linux64.h | 4 +-
gcc/config/rs6000/rs6000-call.cc | 10 ++--
gcc/config/rs6000/rs6000-logue.cc | 4 +-
gcc/config/rs6000/rs6000.cc | 15 +++---
gcc/config/s390/s390-c.cc | 4 +-
gcc/config/s390/s390.cc | 8 +--
gcc/config/sh/sh.cc | 12 ++---
gcc/config/sol2.cc | 2 +-
gcc/config/sparc/sparc.cc | 2 +-
gcc/config/sparc/sparc.h | 4 +-
gcc/config/stormy16/stormy16.cc | 4 +-
gcc/config/v850/v850.cc | 6 +--
gcc/config/visium/visium.cc | 4 +-
gcc/config/xtensa/xtensa.cc | 2 +-
gcc/cp/call.cc | 42 +++++++--------
gcc/cp/class.cc | 2 +-
gcc/cp/coroutines.cc | 2 +-
gcc/cp/cp-tree.h | 4 +-
gcc/cp/cvt.cc | 2 +-
gcc/cp/cxx-pretty-print.cc | 2 +-
gcc/cp/decl.cc | 4 +-
gcc/cp/error.cc | 2 +-
gcc/cp/lambda.cc | 2 +-
gcc/cp/mangle.cc | 2 +-
gcc/cp/method.cc | 2 +-
gcc/cp/module.cc | 12 ++---
gcc/cp/name-lookup.cc | 6 +--
gcc/cp/pt.cc | 2 +-
gcc/cp/semantics.cc | 24 ++++-----
gcc/cp/tree.cc | 4 +-
gcc/cp/typeck.cc | 4 +-
gcc/cp/typeck2.cc | 10 ++--
gcc/d/d-codegen.cc | 2 +-
gcc/d/d-convert.cc | 9 ++--
gcc/dwarf2out.cc | 15 +++---
gcc/expr.cc | 2 +-
gcc/fold-const.cc | 46 ++++++++--------
gcc/fortran/trans-array.cc | 10 ++--
gcc/fortran/trans-decl.cc | 4 +-
gcc/fortran/trans-expr.cc | 6 +--
gcc/fortran/trans-intrinsic.cc | 4 +-
gcc/fortran/trans-io.cc | 2 +-
gcc/fortran/trans-openmp.cc | 7 ++-
gcc/fortran/trans-stmt.cc | 2 +-
gcc/fortran/trans.cc | 4 +-
gcc/gcc-rich-location.cc | 2 +-
gcc/gimple-expr.cc | 19 +++----
gcc/gimple-expr.h | 4 +-
gcc/gimple-ssa-warn-access.cc | 2 +-
gcc/gimplify.cc | 48 ++++++++---------
gcc/go/go-gcc.cc | 10 ++--
gcc/godump.cc | 4 +-
gcc/graphite-scop-detection.cc | 4 +-
gcc/ipa-devirt.cc | 4 +-
gcc/ipa-prop.cc | 7 ++-
gcc/ipa-sra.cc | 8 +--
gcc/lto-streamer-in.cc | 4 +-
gcc/lto-streamer-out.cc | 11 ++--
gcc/lto/lto-common.cc | 2 +-
gcc/lto/lto-symtab.cc | 8 +--
gcc/lto/lto-symtab.h | 2 +-
gcc/m2/gm2-gcc/m2builtins.cc | 14 ++---
gcc/m2/gm2-gcc/m2convert.cc | 8 +--
gcc/m2/gm2-gcc/m2expr.cc | 4 +-
gcc/m2/gm2-gcc/m2tree.cc | 2 +-
gcc/m2/gm2-gcc/m2treelib.cc | 2 +-
gcc/m2/gm2-gcc/m2type.cc | 4 +-
gcc/m2/m2pp.cc | 4 +-
gcc/objc/objc-act.cc | 10 ++--
gcc/objc/objc-next-runtime-abi-01.cc | 2 +-
gcc/objc/objc-next-runtime-abi-02.cc | 4 +-
gcc/omp-low.cc | 36 ++++++-------
gcc/omp-oacc-neuter-broadcast.cc | 10 ++--
gcc/omp-offload.cc | 2 +-
gcc/omp-simd-clone.cc | 2 +-
gcc/optabs-tree.cc | 12 ++---
gcc/rust/backend/rust-compile-expr.cc | 2 +-
gcc/rust/backend/rust-tree.cc | 2 +-
gcc/rust/backend/rust-tree.h | 4 +-
gcc/rust/checks/lints/rust-lint-unused-var.cc | 2 +-
gcc/rust/rust-gcc.cc | 8 +--
gcc/toplev.cc | 2 +-
gcc/trans-mem.cc | 2 +-
gcc/tree-cfg.cc | 22 ++++----
gcc/tree-complex.cc | 2 +-
gcc/tree-emutls.cc | 2 +-
gcc/tree-inline.cc | 8 +--
gcc/tree-nested.cc | 16 +++---
gcc/tree-parloops.cc | 2 +-
gcc/tree-pretty-print.cc | 4 +-
gcc/tree-sra.cc | 4 +-
gcc/tree-ssa-alias.cc | 4 +-
gcc/tree-ssa-ccp.cc | 2 +-
gcc/tree-ssa-coalesce.cc | 2 +-
gcc/tree-ssa-dom.cc | 4 +-
gcc/tree-ssa-forwprop.cc | 3 +-
gcc/tree-ssa-propagate.cc | 2 +-
gcc/tree-ssa-sccvn.cc | 2 +-
gcc/tree-ssa-sink.cc | 2 +-
gcc/tree-ssa-structalias.cc | 3 +-
gcc/tree-ssa-ter.cc | 2 +-
gcc/tree-ssa-uninit.cc | 2 +-
gcc/tree-ssa.cc | 4 +-
gcc/tree-streamer-in.cc | 3 +-
gcc/tree-streamer-out.cc | 3 +-
gcc/tree-vect-generic.cc | 8 +--
gcc/tree-vect-stmts.cc | 2 +-
gcc/tree-vector-builder.h | 2 +-
gcc/tree.cc | 28 +++++-----
gcc/ubsan.cc | 2 +-
gcc/var-tracking.cc | 4 +-
gcc/varasm.cc | 2 +-
libcc1/libcc1plugin.cc | 2 +-
libcc1/libcp1plugin.cc | 4 +-
178 files changed, 569 insertions(+), 615 deletions(-)