On Thu, Jun 30, 2016 at 01:03:17AM +0200, Bernd Schmidt wrote: > On 06/08/2016 07:26 PM, Segher Boessenkool wrote: > >One thing I should try is put a USE of the saved registers at such > >exits, maybe that helps those passes that now delete frame restores > >to not do that. > > Have you had a chance to try this?
Not yet. I have tried to get dwarf2cfi not to complain when one path entering a block has a restore and some other patch doesn't (and mark the register as unavailable). That works great in most cases but it seems sometimes this also then happens for exception handlers, which is disastrous of course (and horrendous to debug). The USE thing should be much easier, I might have results tomorrow, if not, next week. Segher