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]

Re: Fix ptr_mode != Pmode problems in except.c


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~


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