[PATCH] Fix PR middle-end/22313 -freorder-blocks-and-partition vs dwarf2 undwind tables

Andrew Pinski pinskia@physics.uc.edu
Fri Nov 11 20:13:00 GMT 2005


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixPR22313.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051111/f5217de6/attachment.txt>


More information about the Gcc-patches mailing list