From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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: Wed, 17 May 2017 02:45:00 -0000 Message-Id: <20170517021835.8685-1-andi@firstfloor.org> X-SW-Source: 2017-05/txt/msg01341.txt.bz2 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), -- 2.12.2