PATCH: Dump DECL_BIT_FIELD_TYPE

Mark Mitchell mark@codesourcery.com
Mon Apr 24 03:37:00 GMT 2006


We were not printing DECL_BIT_FIELD_TYPE for a FIELD_DECL.

Committed to mainline.
 
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2006-04-23  Mark Mitchell  <mark@codesourcery.com>

	* print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.

Index: print-tree.c
===================================================================
--- print-tree.c	(revision 113198)
+++ print-tree.c	(working copy)
@@ -458,6 +458,9 @@ print_node (FILE *file, const char *pref
 	  print_node (file, "offset", DECL_FIELD_OFFSET (node), indent + 4);
 	  print_node (file, "bit offset", DECL_FIELD_BIT_OFFSET (node),
 		      indent + 4);
+	  if (DECL_BIT_FIELD_TYPE (node))
+	    print_node (file, "bit_field_type", DECL_BIT_FIELD_TYPE (node),
+			indent + 4);
 	}
 
       print_node_brief (file, "context", DECL_CONTEXT (node), indent + 4);



More information about the Gcc-patches mailing list