On Thu, 4 Aug 2011, H.J. Lu wrote:

> Here is the updated patch to get proper HOST_WIDE_INT bits and 1
> through a new file, opt-gen.c.  OK for trunk?

Using another generator program like this can't be the best approach 
(apart from anything else, when built for the build system hwint.h should 
reflect the build system types not the host system types; cf. 
<http://gcc.gnu.org/ml/gcc/2010-08/msg00111.html> where I suspected that 
sort of host/build confusion of causing a reported build failure).

You want opth-gen.awk to know the number of bits to give errors.  Note 
that the errors are given by generating #error into the output file.  It's 
easy enough to generate #if conditions into the file that compare with 
HOST_BITS_PER_WIDE_INT.

You want opth-gen.awk to know whether to use 1LL as the shifted constant.  
You can easily enough make hwint.h contain a HOST_WIDE_INT_1 macro, 
defined to 1L or 1LL as appropriate.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to