public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Always print attributes when dumping tree
@ 2017-05-17  2:45 Andi Kleen
  2017-06-23  4:46 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2017-05-17  2:45 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andi Kleen

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(-)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-23  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17  2:45 [PATCH] Always print attributes when dumping tree Andi Kleen
2017-06-23  4:46 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).