https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66616
--- Comment #18 from Martin Jambor <jamborm at gcc dot gnu.org> --- So it was a near miss, the problem appears to be the can_change_signature flag instead. The following seems to fix the -m32 failure. I'm going to bootstrap it and if it passes, send it to the mailing list. diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index f8a7d37..8759ce4 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -328,6 +328,7 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node) new_thunk = cgraph_node::create (new_decl); set_new_clone_decl_and_node_flags (new_thunk); new_thunk->definition = true; + new_thunk->local.can_change_signature = node->local.can_change_signature; new_thunk->thunk = thunk->thunk; new_thunk->unique_name = in_lto_p; new_thunk->former_clone_of = thunk->decl;