https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100467
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Bernd Edlinger <edlin...@gcc.gnu.org>: https://gcc.gnu.org/g:6c9071c089c31eddc4ac80e0488bb9d37f9e11f1 commit r12-640-g6c9071c089c31eddc4ac80e0488bb9d37f9e11f1 Author: Bernd Edlinger <bernd.edlin...@hotmail.de> Date: Sat May 8 07:46:17 2021 +0200 Reset prologue_location before calling code_end Some targets emit thunks from the targetm.asm_out.code_end function and set the DECL_IGNORED_P, but due to e69ac020372 ("Add line debug info for virtual thunks") the value in prologue_location is no longer ignored. So reset that value before calling the backend. 2021-05-10 Bernd Edlinger <bernd.edlin...@hotmail.de> PR middle-end/100467 * toplev.c (compile_file): Call insn_locations_init before targetm.asm_out.code_end.