Re: GCC tree dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux