Reset force_source_line in final.c
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 15 Jan 2021 21:50:48 +0000 (22:50 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 15 Jan 2021 21:53:27 +0000 (22:53 +0100)
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

index b037e07fca031587f964ca9acd5844e2551fb7f2..daae115fef5612caa22a013816190424649212cb 100644 (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;