On 07/03/11 22:01, Richard Henderson wrote: > Bernd's original patch to optimize dwarf2 cfi for shrink-wrapping > is difficult to analyze because that optimization was done via a > random debugging hook during final, and the cfi notes are deleted > at the end of final so that we don't get debug comparison failures. > > By pulling the note creation out to a separate pass, we can dump > the notes and thus debug the optimization. > > So far I've tested this only on x86_64-linux. It needs a bit more > testing across other targets before going in. Any help that can > be given there would be welcome.
I'm trying to help by running ARM tests, but I've managed to screw up by running out of disk space, so I'm starting again from scratch now. > dwarf2out: Split CFI construction routines into a new file. > dwarf2out: Move insn scanning out of final.c. > dwarf2out: Emit NOTE_INSN_CFI_* both with and without cfi-asm. > dwarf2out: Convert fde_table to a VEC. > dwarf2: Extract cfi creation to a new pass. > Dump NOTE_INSN_CFI notes. Ok for the bits that aren't from me anyway, once you're satisfied it's sufficiently tested. Bernd