This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/57451] Incorrect debug ranges emitted for -freorder-blocks-and-partition -g
- From: "ccoutant at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jun 2013 17:08:44 +0000
- Subject: [Bug rtl-optimization/57451] Incorrect debug ranges emitted for -freorder-blocks-and-partition -g
- Auto-submitted: auto-generated
- References: <bug-57451-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57451
Cary Coutant <ccoutant at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ccoutant at gcc dot gnu.org
--- Comment #2 from Cary Coutant <ccoutant at gcc dot gnu.org> ---
I'll take a look, but at first glance it looks like
have_multiple_function_sections isn't being set in dwarf2out.c, which leads it
to assume that it can use "symbol - symbol" expressions in the range lists.
That flag is set by the switch_text_section hook, which is called from
final_scan_insn when it sees a NOTE_INSN_SWITCH_TEXT_SECTIONS insn. When
-freorder-blocks-and-partitions is turned on, is such a NOTE being emitted?