Re: Ignore cxa_pure_virtual in ipa-devirt's target lists

2014-04-15 Thread Jason Merrill
On 04/14/2014 04:06 PM, Jan Hubicka wrote: 1) write backend pass that walks vtables and for every non-hidden noreturn function it can produce hidden COMDAT wrapper with a fixed (GCC local) mangling. Perhaps with a command line option to do so for all virtual functions; while this wo

Ignore cxa_pure_virtual in ipa-devirt's target lists

2014-04-14 Thread Jan Hubicka
Hi, as discussed in February, it is safe for ipa-devirt to skip all cxa_pure_virtual calls from virtual tables. Since cxa_pure_virtual is not a builtin, I simply implemented this by making maybe_record_node to skip everything that is not of METHOD_TYPE. Other drawback of cxa_pure_virtual is that