From: Eric Botcazou <botcazou@adacore.com>
To: gcc-patches@gcc.gnu.org
Subject: [patch] Reset force_source_line in final.c
Date: Fri, 15 Jan 2021 22:53:48 +0100 [thread overview]
Message-ID: <2917945.M8GYO2SQdh@fomalhaut> (raw)
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
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 <ebotcazou@adacore.com>
* final.c (final_start_function_1): Reset force_source_line.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 446 bytes --]
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;
reply other threads:[~2021-01-15 21:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2917945.M8GYO2SQdh@fomalhaut \
--to=botcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).