This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] adjust dwarf ra column to libexc expectations on mips-irix
- From: Richard Henderson <rth at redhat dot com>
- To: Olivier Hainque <hainque at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 11:48:34 -0800
- Subject: Re: [PATCH] adjust dwarf ra column to libexc expectations on mips-irix
- References: <20050327125436.B31525@rome.act-europe.fr>
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~