[GCC-XML] offset attribute problem
Kang, Gene Y (N-Simulogix)
gene.y.kang at lmco.com
Thu Oct 14 11:28:38 EDT 2004
Brad, it's working now. Thanks for all of your help.
Gene
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Wednesday, October 13, 2004 6:25 AM
To: Kang, Gene Y (N-Simulogix)
Cc: gccxml at gccxml.org
Subject: Re: [GCC-XML] offset attribute problem
Brad King wrote:
> Kang, Gene Y (N-Simulogix) wrote:
>
>> Brad, I recompiled this time as a .cpp module with g++ as you
>> suggested. I still get 4 as my output.
>
>
> Okay. I've built GCC-XML on a Sun and duplicated the problem. Please
> submit it as a bug report here:
>
> http://www.gccxml.org/Bug
>
> and you will automatically be notified when it is fixed.
Okay, nevermind about the bug report. It was a simple fix:
/cvsroot/GCC_XML/gccxml/GCC_XML/xml.c,v <-- xml.c
new revision: 1.91; previous revision: 1.90
Basically there was a HOST_WIDE_INT being printed with the "%u" format.
On the Sun HOST_WIDE_INT is "long long" and it is big endian so "%u"
only accessed the first four bytes which were all zero. It should be
printed with HOST_WIDE_INT_PRINT_UNSIGNED macro, which is defined as
"%llu" when HOST_WIDE_INT is "long long".
-Brad
More information about the gccxml
mailing list