[ColdFire 50/63] Save the PIC register for __builtin_eh_return

Jeffrey Law law@redhat.com
Wed Jan 10 19:20:00 GMT 2007


On Wed, 2007-01-10 at 12:07 +0000, Richard Sandiford wrote:
> g++.dg/eh/registers1.C showed that we weren't restoring %a5 on EH return.
> This is because _Unwind_RaiseException was compiled as PIC, and we didn't
> think it needed to save and restore the PIC register.  There was therefore
> no stack slot in which to set up the value of %a5 on EH return.
> 
> Richard
> 
> 
> gcc/
> 	* config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
> 	functions that call eh_return.
OK.
Jeff




More information about the Gcc-patches mailing list