-fvtable-gc

Richard Henderson rth@redhat.com
Wed Aug 15 15:02:00 GMT 2001


On Wed, Aug 15, 2001 at 05:54:13PM -0400, Jakub Jelinek wrote:
> BTW: Would you require even C code to generate empty .gnu.vtref ...

Yes.  Guessing the languages is IMO too fragile.  Plus, C code *does*
reference vtables in libio, and could easily do so elsewhere as well.
That sort of thing is popular with COM style programming.

Open issues:

  (1) How to indicate (without a linker warning) that the object
      implements some sort of "reflector" that can invoke any 
      class method.  Mozilla implements such a thing.

  (2) How to indicate "local classes" that will never be seen
      outside of a module.  This would make it meaningful to do
      vtable gc on a shared library.


r~



More information about the Gcc mailing list