C++ PATCH to emit_tinfo_decl
Richard Henderson
rth@redhat.com
Thu May 16 10:55:00 GMT 2002
On Thu, May 16, 2002 at 05:45:15AM +0100, Jason Merrill wrote:
> My earlier patch broke mips-elf because rtti.c lies to the backend,
> pretending that all typeinfo nodes have type type_info, which has
> sizeof==8. So the mips-elf toolchain decides it can get to one with a
> gp-relative reloc. Of course, the node for bad_exception is actually of a
> larger type. And it is in a separate linkonce section. Both of these
> cause the optimization to be wrong; the second is easier to use in a fix.
> So now we check DECL_COMDAT in the mips backend.
That's not really the best of ideas. Previously, we put small comdat
variables in .gnu.linkonce.s.*, which gets merged with .sdata.
Can we just not lie about the size?
r~
More information about the Gcc-patches
mailing list