This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/10775
Hello Richard.
Thank you for your advice.
> On Mon, Jun 09, 2003 at 12:20:01PM +0900, Kazuhiro Inaoka wrote:
> > + if (current_function_is_leaf && (new_reg == RETURN_ADDR_REGNUM))
> > + return 0;
>
> You failed to remove this part ...
>
> > + (define_insn "return_internal"
> > + [(return)
> > + (use (reg:SI 14))]
>
> ... because you failed to actually use this part.
> You need to change the epilogue generation code to match.
> Also, this should be used in place of the existing return
> pattern, not alongside of.
It seems that m32r's epilogue generation code is ignore return pattern from
the first.
It uses only TARGET_ASM_FUNCTION_EPILOGUE (m32r_output_function_epilogue).
Is it a problem of how to generate the epilogue code?
Regards,
Kazuhiro