This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [CFT] kill darwin encode_section_info, rev 2


Hi,

On Wed, 14 May 2003, Richard Henderson wrote:

> +      unsigned int r0 = REGNO (XEXP (x, 0));
> +      unsigned int r1 = REGNO (XEXP (x, 1));
> +
> +      if (r0 == 0)
> +	{
> +	  unsigned int tmp;
> +	  tmp = r0; r0 = r1; r1 = tmp;
> +	}

This looks strange.  Inside the if r0 is zero, so why the swapping through
a temporary?


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]