SUBREG_BYTE
Richard Henderson
rth@cygnus.com
Mon Sep 25 10:20:00 GMT 2000
On Mon, Sep 25, 2000 at 11:51:39AM +0100, Bernd Schmidt wrote:
> Just out of curiosity: would all these problems go away if we stopped
> representing small structures as integers?
No. We also get subregs from truncation.
The Sparc64 problem in question can be generated by something like
long foo(double d, int *p)
{
long tmp = d;
*p = tmp;
return tmp;
}
wherein we do an fp->int conversion, try and truncate, but get in
trouble with the 32-bit fp registers.
r~
More information about the Gcc-patches
mailing list