This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]