This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/63572] [5 Regression] ICF breaks user debugging experience
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Oct 2014 09:20:52 +0000
- Subject: [Bug debug/63572] [5 Regression] ICF breaks user debugging experience
- Auto-submitted: auto-generated
- References: <bug-63572-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63572
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
For debugging most important is to get
(gdb) b foo
still work when foo was merged with bar and the program now calls bar
Similarly nice (but probably impossible) is
(gdb) b foo.c:23
with foo.c:23 inside foo. Of course foo and bar, even if considered equal
by ICF, are by no means equivalent lexically. So foo.c:23 could at most
break at the start of bar. (or give a useful diagnostic from gdb)