Re: On INTEGER_CST

2007-03-13 Thread Andrew Pinski
On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Which C type is HOST_WIDE_INT? It can either be long, or long long depending on if the target needs it to be 64bits and what size of long on the host. Isn't the type of the constant always integer_type? No, it can be POINTER_TYPE, ENUME

Re: On INTEGER_CST

2007-03-13 Thread Ian Lance Taylor
"Paulo J. Matos" <[EMAIL PROTECTED]> writes: > On 13 Mar 2007 07:58:41 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> 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. > >

Re: On INTEGER_CST

2007-03-13 Thread Paulo J. Matos
On 13 Mar 2007 07:58:41 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Paulo J. Matos" <[EMAIL PROTECTED]> writes: > INTEGER_CST seems to have TREE_INT_CST_LOW and TREE_INT_CST_HIGH > fields (tree.def). Each has 32 bits. No, each has type HOST_WIDE_INT. On a 64-bit host they will be 64 bi

Re: On INTEGER_CST

2007-03-13 Thread Ian Lance Taylor
"Paulo J. Matos" <[EMAIL PROTECTED]> writes: > INTEGER_CST seems to have TREE_INT_CST_LOW and TREE_INT_CST_HIGH > fields (tree.def). Each has 32 bits. 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 questi