Reset prologue_location before calling code_end
commit6c9071c089c31eddc4ac80e0488bb9d37f9e11f1
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 8 May 2021 05:46:17 +0000 (8 07:46 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 10 May 2021 06:18:03 +0000 (10 08:18 +0200)
tree13ce9cc89c22d7aeb8d0cf277caecbe5602b8dee
parent25f9f35a85ffee808fc1482b14d91176df59751b
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.edlinger@hotmail.de>

PR middle-end/100467
* toplev.c (compile_file): Call insn_locations_init before
targetm.asm_out.code_end.
gcc/toplev.c