This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC tree dump
- From: Andrew Haley <aph at redhat dot com>
- To: lebaron <Imran dot Ali at dsto dot defence dot gov dot au>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Sep 2006 09:43:10 +0100
- Subject: Re: GCC tree dump
- References: <6261529.post@talk.nabble.com>
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.