[PATCH/RFC] PR target/15130 SH: A tail call optimization

Kaz Kojima kkojima@rr.iij4u.or.jp
Fri May 7 23:00:00 GMT 2004


Joern Rennecke <joern.rennecke@superh.com> wrote:
> OK with that change.

Thanks.
Oops.  Now the new code looks like

	  if (temp < 0 && ! current_function_interrupt
	      && (TARGET_SHMEDIA || epilogue_p >= 0))
	    {
	      ...
	      if (epilogue_p > 0)
		{
		  ...
	          if (TARGET_SHMEDIA && epilogue_p < 0)
		    for (i = FIRST_TARGET_REG; i <= LAST_TARGET_REG; i++)
		      CLEAR_HARD_REG_BIT (temps, i);
		}

It clearly should be

	  if (temp < 0 && ! current_function_interrupt
	      && (TARGET_SHMEDIA || epilogue_p >= 0))
	    {
	      ...
	      if (epilogue_p > 0)
		{
		  ...
		}
	      if (TARGET_SHMEDIA && epilogue_p < 0)
		for (i = FIRST_TARGET_REG; i <= LAST_TARGET_REG; i++)
		  CLEAR_HARD_REG_BIT (temps, i);

Is this change ok?

Regards,
	kaz



More information about the Gcc-patches mailing list