diff options
author | Jan Hubicka <jh@suse.cz> | 2020-10-30 14:30:43 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-10-30 14:30:43 +0100 |
commit | aa701610e51ca9e15573ba080cb93ef726252cfc (patch) | |
tree | df843230a64856ebefdf8d5a021f3ee7d11851b5 /gcc/cgraphunit.c | |
parent | 40cb3f8ac875c6cf6610a5f93da571cfdd2a1513 (diff) | |
download | gcc-aa701610e51ca9e15573ba080cb93ef726252cfc.zip gcc-aa701610e51ca9e15573ba080cb93ef726252cfc.tar.gz gcc-aa701610e51ca9e15573ba080cb93ef726252cfc.tar.bz2 |
Fix thunk info WRT PCH
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.
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 08b93cb..3a98958 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1155,6 +1155,8 @@ analyze_functions (bool first_time) symtab->state = CONSTRUCTION; input_location = UNKNOWN_LOCATION; + thunk_info::process_early_thunks (); + /* Ugly, but the fixup cannot happen at a time same body alias is created; C++ FE is confused about the COMDAT groups being right. */ if (symtab->cpp_implicit_aliases_done) |