This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stdint.h type information needed
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: gcc at gcc dot gnu dot org, dave dot korn dot cygwin at googlemail dot com, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Fri, 03 Apr 2009 12:45:31 +0100
- Subject: Re: stdint.h type information needed
- References: <222FA4A0-174C-428D-8EF1-C9160FB4F00A@gmail.com>
FX wrote:
>>> for some reason identifier_global_value() on it returns NULL.
>> ... and this is presumably because it should have /already/ been
> declared somehow.
>
> I have exactly the same issue on darwin, it segfaults on:
>
>> char16_type_node = TREE_TYPE (identifier_global_value
>> (char16_type_node));
>
> because identifier_global_value (char16_type_node) is NULL. The patch I
> use is attached. Joseph, could you help us to proceed further?
LOL, I forgot to attach mine didn't I? It's basically the same, I copied
and pasted the newlib version and tweaked a couple of the definitions so they
were identical to Cygwin's stdint.h. I suspect we're simply missing some
needed definition somewhere, so I won't send mine now you've sent yours.
Neither adding /usr/include/uchar.h, nor defining char{16,32}_t in
/usr/include/stdint.h fixed this for me.
cheers,
DaveK