From c029fcb56805bcb556e5c4dccdd4d124ca7eda33 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 15 Jan 2021 22:50:48 +0100 Subject: [PATCH] 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. --- gcc/final.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2