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]

Re: -fvtable-gc


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~


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