On 2013-04-18 16:58 , Hendrik Greving wrote:
Hi,

this is w.r.t. an older GCC version, I took a quick look and it looks
like it's still roughly the same in recent GCC's.

In function c-decl.c:grokdeclarator: I am debugging something and am
wondering, what does an IDENTIFIER_POINTER (id->identifier.id.str)
contain? I see long strings in there, e.g. something like

    const unsigned char *) 0x345db66 "#cs476000M", '0' <repeats 24
times>, "30007fffffe00000_", '0' <repeats 16 times>, "_0", 'f'
<repeats 25 times>, "000000_00000000_0000000030007fffffe00000_", '0'
<repeats 16 times>, "_0", 'f' <repeats 25 times>,
"000000_00000000_000000"...

Identifier strings are not NUL-terminated, what you are seeing is random memory contents at the end of the identifier.


Diego.

Reply via email to