This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: mangler bug fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 07 Mar 2005 17:54:29 -0700
- Subject: [gcjx] Patch: FYI: mangler bug fix
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This fixes name mangling so we don't always prepend a '0' to the
number in a compressed string.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* aot/mangle.cc (emit_saved): Fixed test for '0'.
Index: aot/mangle.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/aot/Attic/mangle.cc,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 mangle.cc
--- aot/mangle.cc 8 Mar 2005 00:22:43 -0000 1.1.2.5
+++ aot/mangle.cc 8 Mar 2005 00:55:13 -0000
@@ -68,7 +68,7 @@
out[--where] = digit > 9 ? ('A' + n - 10) : ('0' + n);
n /= 36;
}
- if (where == 18)
+ if (where == 19)
out[--where] = '0';
result += &out[where];
}