On INTEGER_CST
Ian Lance Taylor
iant@google.com
Tue Mar 13 15:43:00 GMT 2007
"Paulo J. Matos" <pocm@soton.ac.uk> writes:
> On 13 Mar 2007 07:58:41 -0700, Ian Lance Taylor <iant@google.com> wrote:
> > No, each has type HOST_WIDE_INT. On a 64-bit host they will be 64
> > bits.
> >
> > > 1 - Should I use ints for these fields?
> >
> > I don't understand the question.
> >
>
> Which C type is HOST_WIDE_INT?
It's host dependent (hence the name). See gcc/hwint.h.
> Isn't the type of the constant always integer_type? How can I know if
> it is negative or positive?
No, the type of the constant, by which I mean the type as seen by the
program being compiled, can be any integral type. In particular it
can be an unsigned type. You need to look at TREE_TYPE.
Ian
More information about the Gcc
mailing list