This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The problem here is that without -g, dwarf2out does not get notified of the textswitch so we get create a difference between two labels in two different sections. This fixes the problem by exporting dwarf2out_switch_text_section and calling it when processing NOTE_INSN_SWITCH_TEXT_SECTIONS if we need to. OK? Profiledbootstrapped with BOOT_CFLAGS="-O2" and a normal bootstrap and test on x86_64-pc-linux-gnu with no regressions. Thanks, Andrew Pinski ChangeLog: * dwarf2out.c (dwarf2out_switch_text_section): Export. * debug.h (dwarf2out_switch_text_section): Prototype. * final.c (final_scan_insn): Call dwarf2out_switch_text_section if we need to call it for dwarf2 unwind info.
Attachment:
fixPR22313.diff.txt
Description: ASCII C program text
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |