This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix ptr_mode != Pmode problems in except.c
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Fix ptr_mode != Pmode problems in except.c
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 4 Jun 2001 15:26:19 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <10106021056.AA23091@vlsi1.ultra.nyu.edu>
On Sat, Jun 02, 2001 at 06:56:58AM -0400, Richard Kenner wrote:
> *************** expand_eh_return ()
> *** 3046,3060 ****
>
> emit_move_insn (sa, cfun->eh->ehr_stackadj);
> !
> ! handler = cfun->eh->ehr_handler;
> ! if (GET_MODE (ra) != Pmode)
> ! {
> ! #ifdef POINTERS_EXTEND_UNSIGNED
> ! handler = convert_memory_address (GET_MODE (ra), handler);
> ! #else
> ! handler = convert_to_mode (GET_MODE (ra), handler, 0);
> ! #endif
> ! }
> ! emit_move_insn (ra, handler);
> }
>
> --- 3053,3057 ----
>
> emit_move_insn (sa, cfun->eh->ehr_stackadj);
> ! emit_move_insn (ra, cfun->eh->ehr_handler);
> }
>
This bit is wrong. Mips4 with the n32 abi has word_mode == DImode,
but Pmode == ptr_mode == SImode. Conversion from word_mode to Pmode
is needed here, not ptr_mode to Pmode.
r~