This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [C++ patch] Hookize output_vtable_inherit


On Tue, 24 Jun 2003 13:13:26 +0200, Jan Hubicka <jh@suse.cz> wrote:

>> On Mon, 2003-06-23 at 23:57, Hans-Peter Nilsson wrote:
>> > On 23 Jun 2003, Mark Mitchell wrote:
>> > > Yes, this is OK.  output_vtable_inherit and assemble_vtable_inherit
>> > > should be working with trees, not RTL, but that's not your fault, so
>> > > there's no reason you should fix it.
>> > 
>> > Does -fvtable-gc work anyway these days, or are you just
>> > keeping those functions around for a rainy day?
>> 
>> Beats me!  I never really worked with that stuff at all.
>
> It emits the hints to the assembly files for sure, also gas understands
> them.  What happends then is behind me.  (as well as the reason for this
> code)

The goal of the code is to allow the linker --gc-sections flag to discard
unused virtual functions.  AFAIK it's been broken for a while, and never
worked with shared libraries.

Jason


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