https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89267
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The trunk has unlike 8.x the first hunk from r268377 which handles CALL_FROM_THUNK_P elsewhere, and that is where it clears EXPR_LOCATION on the call too.