https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61853
--- Comment #9 from John David Anglin <danglin at gcc dot gnu.org> --- Introduced in r202592: * tree-into-ssa.c (gate_into_ssa): New. (pass_data_build_ssa): Use it. * cgraph.h (expand_thunk): Update prototype. * cgraphunit.c (analyze_function): Expand thunks early. (expand_thunk): Fix DECL_CONTEXT of reust_decl; build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN; set lowered flag; do not add new function. (assemble_thunks_and_aliases): Update. * tree-ssa.c (gate_init_datastructures): New gate. (pass_data_init_datastructures): Use it. PA bug fix in r202594 needs to be backported to r202592 to see this.