Message ID | 20120330.063959.476018262.kkojima@rr.iij4u.or.jp |
---|---|
State | New |
Headers | show |
Hi, >> Looks that the patch ignores the case using movml. >> It could be something like the attached patch Sorry for ignoring the case using movml. Thanks for the patch which takes care of movml case. >> though I don't do any tests. The patch was tested with movml testcase and works as expected. Tested with sh2a-elf. No new regressions. Thanks & Regards, Naveen
"Naveen H. S" <Naveen.S@kpitcummins.com> wrote: > The patch was tested with movml testcase and works as expected. > > Tested with sh2a-elf. No new regressions. Thanks for testing. I've committed it as revision 186024 on trunk. Regards, kaz
--- ORIG/trunk/gcc/config/sh/sh.c 2012-03-28 17:51:20.000000000 +0900 +++ trunk/gcc/config/sh/sh.c 2012-03-29 21:59:13.000000000 +0900 @@ -6487,7 +6487,9 @@ push_regs (HARD_REG_SET *mask, int inter use_movml = true; } - if (use_movml) + if (sh_cfun_resbank_handler_p ()) + ; /* Do nothing. */ + else if (use_movml) { rtx x, mem, reg, set; rtx sp_reg = gen_rtx_REG (SImode, STACK_POINTER_REGNUM); @@ -7485,7 +7487,9 @@ sh_expand_epilogue (bool sibcall_p) use_movml = true; } - if (use_movml) + if (sh_cfun_resbank_handler_p ()) + ; /* Do nothing. */ + else if (use_movml) { rtx sp_reg = gen_rtx_REG (SImode, STACK_POINTER_REGNUM);