Unlike the other global variables, it is not reset at the beginning of a
function so can leak into the next one.
Tested on x86-64/Linux, applied on the mainline as obvious.
2021-01-15 Eric Botcazou <ebotca...@adacore.com>
* final.c (final_start_function_1): Reset force_source_line.
--
Eric Botcazou
diff --git a/gcc/final.c b/gcc/final.c
index b037e07fca0..daae115fef5 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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;