public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "matt at use dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56231] warning traces have bogus line information when using LTO Date: Tue, 12 Feb 2013 02:02:00 -0000 [thread overview] Message-ID: <bug-56231-4-Xua2etGr3Q@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-56231-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56231 --- Comment #12 from Matt Hargett <matt at use dot net> 2013-02-12 02:02:33 UTC --- looking at the patch for merging elsewhere, I noticed that location_t lto_input_location (struct bitpack_d *bp, struct data_in *data_in) { + static const char *current_file; + static int current_line; + static int current_col; bool file_change, line_change, column_change; unsigned len; - bool prev_file = data_in->current_file != NULL; + bool prev_file = current_file != NULL; current_file is potentially of unknown value on the comparison in the last line, right? or is there some static const initialization rule that implicitly initializes it to 0?
next prev parent reply other threads:[~2013-02-12 2:02 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-06 21:56 [Bug middle-end/56231] New: " matt at use dot net 2013-02-07 10:52 ` [Bug middle-end/56231] " rguenth at gcc dot gnu.org 2013-02-07 13:54 ` rguenth at gcc dot gnu.org 2013-02-07 14:02 ` rguenth at gcc dot gnu.org 2013-02-07 14:35 ` rguenth at gcc dot gnu.org 2013-02-07 19:10 ` manu at gcc dot gnu.org 2013-02-08 9:07 ` rguenther at suse dot de 2013-02-08 10:10 ` rguenth at gcc dot gnu.org 2013-02-08 10:55 ` rguenth at gcc dot gnu.org 2013-02-08 12:55 ` rguenth at gcc dot gnu.org 2013-02-08 12:56 ` rguenth at gcc dot gnu.org 2013-02-12 1:55 ` matt at use dot net 2013-02-12 2:02 ` matt at use dot net [this message] 2013-02-12 11:11 ` rguenther at suse dot de
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=bug-56231-4-Xua2etGr3Q@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).