This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: call_value pattern
- To: gcc at gcc dot gnu dot org
- Subject: Re: call_value pattern
- From: James Montgomerie <jrmg at dcs dot ed dot ac dot uk>
- Date: Wed, 24 Jan 2001 20:52:59 +0000 (GMT)
On Wed, 24 Jan 2001, Alan Lehotsky wrote:
>
> Actually, I think there's something wrong if the mode of operand[0]
> is not right.
Ah, yes, you're right. I've just noticed that I'd typoed in the md file,
and have actually been testing the mode of operand[1]. Doh! I suppose
that'll teach me to code when tired.
> My guess would be that you haven't defined the FUNCTION_VALUE macro correctly.
>
> Note, that if your machine is BIG_ENDIAN and sizeof(int) is larger
> than UNITS_PER_WORD,
> you need a special hack for functions returning a char. [it took me
> entirely too long
> to realize this....]
Hmmm... I'll look out for that.
Thanks to everyone who replied,
Jamie.