Hi,
On Wed, 2 Mar 2011, Kyle Girard wrote:
> > > 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 unit
Kyle Girard writes:
> 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?
I don't know of anything like that in gcc today. The first thing you
need to do is define when two types are
> 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 uni
Hi,
On Wed, 2 Mar 2011, Kyle Girard wrote:
> Question, how is the uid for a type calculated? What are the
> contributing factors?
It's simply a counter incremented each time a type node is created (see
next_type_uid), hence ...
> Can I count on the uid for a type in a header to be the same acr