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: RFA: Fix bootstrap/46358


On 11/08/2010 01:57 AM, Joern Rennecke wrote:
> +	  gcc_assert ((allocate & (HOST_WIDE_INT) 0xffffffff) == allocate);
> +	  gcc_assert (((HOST_WIDE_INT) args_size & (HOST_WIDE_INT) 0xffffffff)
>  		      == (HOST_WIDE_INT) args_size);

Please just promote args_size to HOST_WIDE_INT.

> +	  argval = (HOST_BITS_PER_WIDE_INT > 32
> +		    ? (HOST_WIDE_INT) args_size << 32 : 0) + allocate;

Cleaner to split to the shift in two.

Ok with those changes.


r~


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