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 for c++/61687 (extra errors with -O2)


On 07/17/2014 08:23 AM, Jan Hubicka wrote:
Given my experience about numbers of functions that become reachable when you stream all virtuals into LTO,
I wonder if we don't want to use possible_polymorphic_call_targets within the front-end to avoid instantiating
those that can't be called?

Yes, I think we need to do that.  I'll look into it.

I think it should not be too hard - all we need is to populate the type inheritance graph from FE and then
for each polymorphic call produce the list to mark possible targets are reachable.

Hmm, do you think it's reasonable to call build_type_inheritance_graph from the FE? The FE doesn't currently track all types derived from a particular base.

Jason


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