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]

Re: SUBREG_BYTE


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~

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