This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bit_size_type - a data type?
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Mohamed Shafi" <shafitvm at gmail dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Mon, 12 May 2008 12:11:32 +0200
- Subject: Re: bit_size_type - a data type?
- References: <ba0bd44d0805120258r3df0233ck4998aa1b91d1fbbd@mail.gmail.com>
On Mon, May 12, 2008 at 11:58 AM, Mohamed Shafi <shafitvm@gmail.com> wrote:
> Hello all,
>
> During debugging in gimple dumps i found a term that is used along
> with other data types - bit_size_type.
>
> I am getting ICEs when size of int is 32 bit and no errors when the
> size of int is 16. This is for a back-end whose native size is 16bit.
>
> Is this any internal data type used to for representation?
> What is the size of this data type? Will i be able to control the size
> of this like we can for other data types?
bitsizetype is a type that can hold any values of sizetype * BITS_PER_UNIT so
we can safely do bit-size calculations without overflow. This type
shouldn't end
up used in code though.
Richard.