This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFC] PR other/22313: Hot/cold sections vs. dwarf2 (take 2)
- From: Nicolas Setton <setton at adacore dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Fri, 8 Sep 2006 16:51:42 +0200
- Subject: Re: [PATCH/RFC] PR other/22313: Hot/cold sections vs. dwarf2 (take 2)
- References: <Pine.LNX.4.44.0609080712250.29246-100000@www.eyesopen.com>
Hello Roger,
Grr. Indeed you're right that it looks like
convert_cfa_to_fb_loc_list
in dwarf2out.c doesn't appear to support set_loc. The following one
line patch appears to avoid the null range in your testcase on
x86-linux. I'm not really a dwarf expert, so I wonder if you could
confirm that the debugging information is now correct (and we can now
find "a" in "main"). From the source code, this looks like the
correct
fix.
This patch looks good to me. It does fix the dwarf-2 problem we had
observed, and as a result the debugger is back on track with respect
to this locations list issue.
Many thanks for looking at this,
Nicolas