Message ID | 20230919184016.1059841-1-ppalka@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IppLHsC/; dkim-atps=neutral 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=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rqr892WPkz1ynX for <incoming@patchwork.ozlabs.org>; Wed, 20 Sep 2023 04:40:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECDE53858422 for <incoming@patchwork.ozlabs.org>; Tue, 19 Sep 2023 18:40:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 2D9713858D20 for <gcc-patches@gcc.gnu.org>; Tue, 19 Sep 2023 18:40:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2D9713858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695148820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8iZ6nT4g+kj2rnPBT3WQL6HpOU8ySzrRf8Gs8Kugccg=; b=IppLHsC/a8JxwCxcdrLtrh87RaEltG0QuBQDRyE3maZ8SlXncwSf+JdJt2EyvemsEohKw3 WCJNDNiOObCJB9FzoVJYY5u7r0BmUcKB82cOIJGEIM19AbSkuFbGiECb9M/4Ngqzc3NZTm 85EiinoNLMrDVpYDbky6KO+25ziBAEo= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-c4xK6JemMECCycGQkKpG3g-1; Tue, 19 Sep 2023 14:40:19 -0400 X-MC-Unique: c4xK6JemMECCycGQkKpG3g-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6563eac566fso1102406d6.1 for <gcc-patches@gcc.gnu.org>; Tue, 19 Sep 2023 11:40:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695148818; x=1695753618; 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=8iZ6nT4g+kj2rnPBT3WQL6HpOU8ySzrRf8Gs8Kugccg=; b=s7oIt0hcwN7NvFnD714sAEY0GWV1AOr4IyC7i/IFVGuYv/J4EpGDS2u/C7qcUYkAYY KMHBWNaHOojxhwSniEE3njxoSRfYqwq27ukAcnTjM5q0xKk79ozhn0JrO1graOu2BWvd 6oSMuKgBowZligeBQJzI5c4K2IJ/6unaF6vlSQ70jzYIi4hUaA2qZEugk1IKtSOBhtjO L8zjZGrDh7p6BfkfWmLYqKRfb60s3pLUAWII0+uc126KBNEFVJu/Rs1K8IXrC6xwmBOu 1KykJxKUrPLeet80JuxvX+M8QpFNOnFjyz/Ihk/KOGsBtgQHtPN41tjV8SlXLxmD9ElW 3Kmw== X-Gm-Message-State: AOJu0YxcUPKLbINr4IjUIDVB3ylcUZ+iFkQUcLCmMenHBY6daHSlWdNB 0GdKNtNutbysSTHoTeweSxdSyuX1uDitFxcoChbgRSvsx+Wj8sf52eQsNZTv66TZB5QyU+CU+EW odUJ5+rl1RJLIljgP7Bb4dYtpzdWFPtx5w2BfWix3Lrv4cXPRB0MCR9OuaVDXNuJ2BCw2baK1Z1 U= X-Received: by 2002:a05:6214:268d:b0:63f:8839:658 with SMTP id gm13-20020a056214268d00b0063f88390658mr4363187qvb.1.1695148818755; Tue, 19 Sep 2023 11:40:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZ5YmZVs5b+/M0iA15FBURwzIJNJR0P4WesMLJAA1VE+22sNC/eXVelv3FBbfUsW6ctljCvA== X-Received: by 2002:a05:6214:268d:b0:63f:8839:658 with SMTP id gm13-20020a056214268d00b0063f88390658mr4363167qvb.1.1695148818426; Tue, 19 Sep 2023 11:40:18 -0700 (PDT) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id l25-20020a0c9799000000b006516780a0a5sm2465818qvd.117.2023.09.19.11.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 11:40:18 -0700 (PDT) From: Patrick Palka <ppalka@redhat.com> To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka <ppalka@redhat.com> Subject: [pushed] c++: fix cxx_print_type's template-info dumping Date: Tue, 19 Sep 2023 14:40:15 -0400 Message-ID: <20230919184016.1059841-1-ppalka@redhat.com> X-Mailer: git-send-email 2.42.0.216.gbda494f404 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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.30 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> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[pushed] c++: fix cxx_print_type's template-info dumping
|
expand
|
diff --git a/gcc/cp/ptree.cc b/gcc/cp/ptree.cc index b4001486701..32c5b5280dc 100644 --- a/gcc/cp/ptree.cc +++ b/gcc/cp/ptree.cc @@ -141,9 +141,8 @@ cxx_print_decl (FILE *file, tree node, int indent) void cxx_print_type (FILE *file, tree node, int indent) { - if (TYPE_LANG_SPECIFIC (node) - && TYPE_TEMPLATE_INFO (node)) - print_node (file, "template-info", TYPE_TEMPLATE_INFO (node), indent + 4); + if (tree ti = TYPE_TEMPLATE_INFO (node)) + print_node (file, "template-info", ti, indent + 4); switch (TREE_CODE (node)) {