public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/55608] [4.6/4.7/4.8 Regression] Debug info quality regressions with file scope vars Date: Thu, 06 Dec 2012 09:05:00 -0000 [thread overview] Message-ID: <bug-55608-4-WhbRPVGAL6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55608-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55608 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-12-06 Ever Confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-06 09:05:12 UTC --- One might argue that not including unused static(!) const vars that might come from headers in all TUs is a good thing - for debug info size, for example. Definitely debug info is already way too large - and we don't include optimized out functions either (so you cannot do inferior calls to them from the debugging session). I don't really see the difference between functions and variables here. Functions even don't print <optimized out> but just (gdb) start Temporary breakpoint 1 at 0x4004c4: file t.c, line 5. Starting program: /tmp/t Temporary breakpoint 1, main () at t.c:5 5 } (gdb) p foo No symbol "foo" in current context. (gdb) p foo () No symbol "foo" in current context. testcase: static int foo (void) { return 1; } int main() { return 0; } at least can we emit this info on unused stuff with -g3 only?
next prev parent reply other threads:[~2012-12-06 9:05 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-12-06 8:58 [Bug debug/55608] New: " jakub at gcc dot gnu.org 2012-12-06 9:05 ` rguenth at gcc dot gnu.org [this message] 2012-12-06 9:12 ` [Bug debug/55608] " pinskia at gcc dot gnu.org 2012-12-06 9:15 ` jakub at gcc dot gnu.org 2012-12-06 14:12 ` jakub at gcc dot gnu.org 2012-12-11 10:42 ` rguenth at gcc dot gnu.org 2013-01-11 15:56 ` [Bug debug/55608] [4.6/4.7/4.8/4.9 " jakub at gcc dot gnu.org 2013-03-21 20:03 ` jakub at gcc dot gnu.org 2014-03-04 11:39 ` [Bug debug/55608] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
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-55608-4-WhbRPVGAL6@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).