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
e69ac02037 ("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.
This commit is contained in:
Bernd Edlinger 2021-05-08 07:46:17 +02:00
parent 25f9f35a85
commit 6c9071c089

View File

@ -523,6 +523,7 @@ compile_file (void)
/* This must be at the end before unwind and debug info.
Some target ports emit PIC setup thunks here. */
insn_locations_init ();
targetm.asm_out.code_end ();
/* Do dbx symbols. */