Reset force_source_line in final.c

Unlike the other global variables, it is not reset at the beginning of a
function so can leak into the next one.

gcc/ChangeLog:
	* final.c (final_start_function_1): Reset force_source_line.
This commit is contained in:
Eric Botcazou 2021-01-15 22:50:48 +01:00
parent b90e4a9741
commit c029fcb568

View File

@ -1712,6 +1712,7 @@ final_start_function_1 (rtx_insn **firstp, FILE *file, int *seen,
last_columnnum = LOCATION_COLUMN (prologue_location);
last_discriminator = discriminator = 0;
last_bb_discriminator = bb_discriminator = 0;
force_source_line = false;
high_block_linenum = high_function_linenum = last_linenum;