From patchwork Wed May 17 02:18:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 763307 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wSJ0N1DM8z9s06 for ; Wed, 17 May 2017 12:18:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="PZMPlYGO"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=VEeVmOhvKVrF l9W7X4Ktn43H1+dnZnc58QqMPFMvY0HOcYdQls9hAXIUmtpwzeQ+5Hy64t/um4re KWuxMe4zd9B6zOTH4QnEG3DHtXm89j9pJ/D26rMZubJFnvGS6S3VpBXvuQYqE841 6P29OlLEGPVdyB9kxjAK/FGvgcx+0s0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=gv8Je0fNnPsGcGtSpn BoQvj+Nt4=; b=PZMPlYGONXdDZ/wAOStZaaBc8gD2BGpreDclsNQ97G2eNU1ptR eOPMROq11Kem2WnSdiBz4e5pepU9z3AaRM5HweAoMWuUf8vaawAUX9vcpH6Z086/ T0rmPpd6KsVtipgqslPNeEQgfzDMGCTv1X8wUaBaA8HgQWCpcG6IiJgmk= Received: (qmail 112032 invoked by alias); 17 May 2017 02:18:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 111958 invoked by uid 89); 17 May 2017 02:18:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 May 2017 02:18:38 +0000 Received: from firstfloor.org (67-5-219-155.ptld.qwest.net [67.5.219.155]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by one.firstfloor.org (Postfix) with ESMTPSA id 29D6D86A95; Wed, 17 May 2017 04:18:38 +0200 (CEST) Received: by firstfloor.org (Postfix, from userid 1000) id 47D16A3288; Tue, 16 May 2017 19:18:36 -0700 (PDT) From: Andi Kleen To: gcc-patches@gcc.gnu.org Cc: Andi Kleen Subject: [PATCH] Always print attributes when dumping tree Date: Tue, 16 May 2017 19:18:35 -0700 Message-Id: <20170517021835.8685-1-andi@firstfloor.org> From: Andi Kleen A tree type dump currently doesn't print the attributes. Since we have so many now and they do many interesting things dumping them can be useful. So dump them by default for tree type dumps. Passes bootstrap and testing on x86_64-linux. gcc/: 2017-05-16 Andi Kleen * print-tree.c (print_node): Print all attributes. --- gcc/print-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/print-tree.c b/gcc/print-tree.c index e0db2dfe82e..f9af02f4e42 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -485,7 +485,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent, if (CODE_CONTAINS_STRUCT (code, TS_DECL_COMMON)) { - print_node_brief (file, "attributes", + print_node (file, "attributes", DECL_ATTRIBUTES (node), indent + 4); if (code != PARM_DECL) print_node_brief (file, "initial", DECL_INITIAL (node),