This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada and TYPE_SIZE of ARRAY_TYPEs
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rguenther at suse dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 13 Dec 05 19:01:29 EST
- Subject: Re: Ada and TYPE_SIZE of ARRAY_TYPEs
Ada seems to set TYPE_SIZE of an ARRAY_TYPE to integer_zero_node,
Not integer_zero_node, but to bitsize_zero_node, for any type that has
a size of zero, which is the case here
domain <integer_type 0x401dcf18>
min <integer_cst 0x401c25e8 6>
max <integer_cst 0x401c25d0 5>
since the size in elements of the ARRAY_TYPE is zero.
Note that ACATS tests are not testing *typical* Ada usage, but usage at
the fringes of the language, so things like zero-sized types or array with
bounds of 2**31 - 10 to 2**31 - 1 are quite common!