This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: TYPE_UID(node) macro value
> It's simply a counter incremented each time a type node is created (see
> next_type_uid), hence ...
>
Thanks the info.
> > Can I count on the uid for a type in a header to be the same across all
> > compilation units that use that header?
>
> ... no.
>
Is there anyway in gcc to get a unique id for a type that would be the
same across compilation units? Or would I have to come up with my own
encoding somehow?
Cheers,
Kyle