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: Take two: kill CONST_DOUBLE_CHAIN


On Sun, May 05, 2002 at 04:02:31PM -0700, Zack Weinberg wrote:
> +  /* We use VOIDmode for integers.  */
> +  value = rtx_alloc (CONST_DOUBLE);
> +  PUT_MODE (value, VOIDmode);
> +
> +  CONST_DOUBLE_LOW (value) = i0;
> +  CONST_DOUBLE_HIGH (value) = i1;

You need to zero any other slots in the const_double.
You probably tested with gc checking, which would have
consistently poisoned them to 0xa5... .

Otherwise ok.


r~


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