This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "return" expander
- From: Momchil Velikov <velco at fadata dot bg>
- To: gcc at gcc dot gnu dot org
- Date: 28 Jul 2002 02:37:56 +0300
- Subject: Re: "return" expander
- References: <87wurgzr9y.fsf@fadata.bg>
>>>>> "Momchil" == Momchil Velikov <velco@fadata.bg> writes:
Momchil> The return insn on v850 is ``jmp [r31]''. I have a case with a
Momchil> function where r31 is allocated and the jump at the end of the
Momchil> function jumps to nowhere. I guess the ``return'' pattern should make
Momchil> ``r31'' live at the end so it is either saved/restored or not
Momchil> allocated. I've tried with
Momchil> What is the proper way to describe insn like these ?
Looks like ``(define_expand "return" [(set (pc) (reg:SI 31))] ...)''
did the trick ...
~velco