This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] adjust dwarf ra column to libexc expectations on mips-irix


On Sun, Mar 27, 2005 at 12:54:36PM +0200, Olivier Hainque wrote:
> *************** mips_frame_set (rtx mem, rtx reg)
> *** 6277,6282 ****
> --- 6277,6298 ----
>   {
>     rtx set = gen_rtx_SET (VOIDmode, mem, reg);
>     RTX_FRAME_RELATED_P (set) = 1;
> + 
> +   /* If we're saving the return address register and the dwarf return
> +      address column number differs from the hard register number, note
> +      the dwarf return address save too.  */
> +   if (REGNO (reg) == GP_REG_FIRST + 31
> +       && DWARF_FRAME_RETURN_COLUMN != GP_REG_FIRST + 31)
> +     {
> +       rtx ra_column_set
> + 	= gen_rtx_SET (VOIDmode,
> + 		       mem,
> + 		       gen_rtx_REG (word_mode, DWARF_FRAME_RETURN_COLUMN));
> +       RTX_FRAME_RELATED_P (ra_column_set) = 1;
> + 
> +       set = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, set, ra_column_set));

There's absolutely no reason to use a parallel here.  Just change
the original reg to be DWARF_FRAME_RETURN_COLUMN.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]