This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add DW_CFA_val_* support to unwind-dw2.c
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 3 Mar 2006 14:52:22 -0800
- Subject: Re: [PATCH] Add DW_CFA_val_* support to unwind-dw2.c
- References: <20060303155804.GG20301@devserv.devel.redhat.com>
On Fri, Mar 03, 2006 at 10:58:05AM -0500, Jakub Jelinek wrote:
> * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
> and REG_SAVED_VAL_EXP constants.
> * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
> (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
> Handle regs stored by value.
> (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
> (execute_cfa_program): Handle DW_CFA_val_offset,
> DW_CFA_val_offset_sf and DW_CFA_val_expression.
> (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
> value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
> (uw_install_context_1): Handle target regs stored by value.
>
> * gcc.target/i386/cleanup-1.c: New test.
> * gcc.target/i386/cleanup-2.c: New test.
Ok.
r~