This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: typedefs
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Giovanni Bajo'" <giovannibajo at libero dot it>, "'Manu Abraham'" <abraham dot manu at gmail dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 22 Nov 2005 13:27:41 -0000
- Subject: RE: typedefs
Giovanni Bajo wrote:
> Manu Abraham <abraham.manu> wrote:
>
>> When one does a
>>
>> typedef uint8_t array[10];
>>
>> what does really happen ?
>
> This question does not concern the development of the GCC compiler in any
> way
??? Unless, surely, the answer wanted was something along the lines of:
`The front end creates a tree structure of type ARRAY_TYPE, which has a
TYPE_NAME of "array", a TYPE_DOMAIN member which points to an INTEGER_TYPE
tree struct that has TYPE_MIN_VALUE equal to INTEGER_CST 0 (most likely
integer_zero_node) and TYPE_MAX_VALUE equal to INTEGER_CST 9, and a TREE_TYPE
that points to the INTEGER_TYPE for uint8_t that was created earlier. [ ... ]'
...no ?
cheers,
DaveK
--
Can't think of a witty .sigline today....