GCC tree dump

Andrew Haley aph@redhat.com
Tue Sep 12 08:43:00 GMT 2006


lebaron writes:
 > 
 > For an integer_type node what is the "unql" child and what exactly does it
 > represent?
 > 
 > @10     integer_type     name: @6      unql: @14     size: @15     
 >                                   algn: 32      prec: 32      min : @16     
 >                                   max : @17     

Read the source, Luke Skywalker:

In tree-dump.c:

      /* All types have qualifiers.  */
      int quals = lang_hooks.tree_dump.type_quals (t);

      if (quals != TYPE_UNQUALIFIED)
	{
	  fprintf (di->stream, "qual: %c%c%c     ",
		   (quals & TYPE_QUAL_CONST) ? 'c' : ' ',
		   (quals & TYPE_QUAL_VOLATILE) ? 'v' : ' ',
		   (quals & TYPE_QUAL_RESTRICT) ? 'r' : ' ');
	  di->column += 14;
	}

      /* All types have associated declarations.  */
      dump_child ("name", TYPE_NAME (t));

      /* All types have a main variant.  */
      if (TYPE_MAIN_VARIANT (t) != t)
	dump_child ("unql", TYPE_MAIN_VARIANT (t));

So, it's the TYPE_MAIN_VARIANT of the type.

Andrew.



More information about the Gcc-help mailing list