This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Canonical types (1/3)
"Steven Bosscher" <stevenb.gcc@gmail.com> writes:
> On 11/28/06, Doug Gregor <doug.gregor@gmail.com> wrote:
> > * tree.h (TYPE_CANONICAL): New.
> > (TYPE_STRUCTURAL_EQUALITY): New.
> > (struct tree_type): Added structural_equality, unused_bits,
> > canonical fields.
>
> If I understand your patches correctly, this stuff is only needed for
> the C-family languages. So why steal two pointers on the generic
> struct tree_type? Are you planning to make all front ends use these
> fields, or is it just additional bloat for e.g. Ada, Fortran, Java?
> ;-)
It seems to me that all the frontends should use these fields.
Hopefully we can use it as a lever to eliminate the types_compatible_p
langhook.
Ian