Chung-Lin Tang <clt...@codesourcery.com> wrote:
> And here are the backend parts for supporting epilogue unwind for SH,
> ccing Kaz. Note that this needs the prior dwarf2 pass changes in too, or
> else occasional ICEs ensue.
> 
> About the issue on unneeded post-return CFI, mentioned before on
> libc-alpha, this patch currently does produce such directives. The
> generated unwind info should still be correct, though will need other
> changes to be optimal.
> 
> Thanks,
> Chung-Lin
> 
> 2012-05-18  Chung-Lin Tang  <clt...@codesourcery.com>
> 
>       * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
>       condition for generating REG_FRAME_RELATED_EXPR note.
>       (pop): Add code for generating REG_CFA_RESTORE,
>       REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
>       (sh_expand_epilogue): Use frame_insn() for FP to SP move.
>       Set 'frame_p' of calls to output_stack_adjust() to 'true'.

The patch is OK.  Thanks for working on this!

Regards,
        kaz

Reply via email to