On 10/29/20 3:32 PM, Jan Hubicka wrote: > Hi, > symbol summaries are not PCH safe and thus thunk_info summary can not be > created before parsing is finished. This patch stores thunk infos into > a vector before they are attachd to actual symbol nodes at symtab > construction time. > > I am not sure how to add the testcase - I did not find similar one in > pch subdirectory... > > Bootstrapped/regtested x86_64-linux, will commit it tomrrow. > gcc/ChangeLog: > > 2020-10-29 Jan Hubicka <hubi...@ucw.cz> > > PR pch/97593 > * cgraph.c (cgraph_node::create_thunk): Register thunk as early during > parsing. > * cgraphunit.c (analyze_functions): Call > thunk_info::process_early_thunks. > * symtab-thunks.cc (struct unprocessed_thunk): New struct. > (thunks): New static variable. > (thunk_info::register_early): New member function. > (thunk_info::process_early_thunks): New member function. > * symtab-thunks.h (thunk_info::register_early): Declare. > (thunk_info::process_early_thunks): Declare.
Ohh thanks. I don't need to bisect this one. I've seen this trip in a few packages during this week's testing. jeff