This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Remaining references of Java
> > 4) tree.c:
> >
> > 13535 if (RECORD_OR_UNION_TYPE_P (t) && TYPE_BINFO (t) && TYPE_BINFO
> > (tv)
> > 13536 && TYPE_BINFO (t) != TYPE_BINFO (tv)
> > 13537 /* FIXME: Java sometimes keep dump TYPE_BINFOs on variant
> > types.
> > 13538 Since there is no cheap way to tell C++/Java type w/o LTO,
> > do checking
> > 13539 at LTO time only. */
> > 13540 && (in_lto_p && odr_type_p (t)))
> > 13541 {
> > 13542 error ("type variant has different TYPE_BINFO");
> > 13543 debug_tree (tv);
> > 13544 error ("type variant's TYPE_BINFO");
> > 13545 debug_tree (TYPE_BINFO (tv));
> > 13546 error ("type's TYPE_BINFO");
> > 13547 debug_tree (TYPE_BINFO (t));
> > 13548 return false;
> >
> > Can we Honza remove that?
>
> Try it? (remove in_lto_p &&)
Yep, I vaguely remember ObjC also doing funny things with BINFOs, but if removing
it breaks nothing I am all for letting it go :)
Honza
>
> > Thanks,
> > Martin