Message ID | 20170517021835.8685-1-andi@firstfloor.org |
---|---|
State | New |
Headers | show |
On 05/16/2017 08:18 PM, Andi Kleen wrote: > From: Andi Kleen <ak@linux.intel.com> > > 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 <ak@linux.intel.com> > > * print-tree.c (print_node): Print all attributes. OK for the trunk. Thanks, Jeff
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),
From: Andi Kleen <ak@linux.intel.com> 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 <ak@linux.intel.com> * print-tree.c (print_node): Print all attributes. --- gcc/print-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)