[Bug rtl-optimization/57451] Incorrect debug ranges emitted for -freorder-blocks-and-partition -g

tejohnson at google dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 13 02:07:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57451

--- Comment #3 from Teresa Johnson <tejohnson at google dot com> ---
Yes, there is a NOTE_INSN_SWITCH_TEXT_SECTIONS note emitted for functions
that are split. In the attached test case the symbol-symbol expression is
being generated across the split boundary of main(), and I confirmed that
the NOTE is there in between the hot/cold sections.

Thanks,
Teresa


On Wed, Jun 12, 2013 at 10:08 AM, ccoutant at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> 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?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>



More information about the Gcc-bugs mailing list