This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: mangler bug fix


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];
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]