From 98fa554593baddab0a7a266ab34e735e2884c4db Mon Sep 17 00:00:00 2001 From: ak Date: Sun, 2 Jul 2017 00:18:37 +0000 Subject: [PATCH] Always print attributes when dumping tree 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. gcc/: 2017-07-01 Andi Kleen * print-tree.c (print_node): Print all attributes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249877 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/print-tree.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36696807dc34..bbcff7463e6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-01 Andi Kleen + + * print-tree.c (print_node): Print all attributes. + 2017-07-01 Jan Hubicka * cfg.c (scale_bbs_frequencies): New function. diff --git a/gcc/print-tree.c b/gcc/print-tree.c index ea26a0b022ef..6a237cc1253e 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -487,7 +487,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.47.2