Problem with renamed static constants in .o file
Bryce McKinlay
mckinlay@redhat.com
Tue Sep 28 19:00:00 GMT 2004
Andrew Haley wrote:
>Dave Menendez writes:
> > On Tue, 2004年09月28日 at 13:56, Andrew Haley wrote:
> > > What does the asm output of "gcj -S" look like?
> > >
> > > Andrew.
> >
> > Here's an excerpt. The only correct item I see is the "ascii" property
> > a few lines in.
>>Yeah. I think that this is a divergence between the way that Java and
>C++ names are mangled.
>>I believe "__U" is used by GCJ as a prefix to encode unicode characters
as the assembler may only support ASCII. If the string "__U" actually
appears in an indentifier, it is encoded as "__U_". In this case it
looks like a bug in GCJs name mangling because its also encoding "_U" in
this way, which shouldn't be neccessary.
In any case, the mangled name should be reflected in the header that
gcjh generates, so theres another bug there.
Bryce
More information about the Java
mailing list