This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Java PATCH: Correctly Ending Java Main's (Mainline)
- To: gcc-patches at gcc dot gnu dot org
- Subject: Java PATCH: Correctly Ending Java Main's (Mainline)
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Wed, 28 Mar 2001 10:17:08 -0800
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
Building -mabi=64 Java libraries on mips-sgi-irix6.5 revealed extra
characters at the end of some mangled names. With this patch,
building the Java libraries completes.
2001-03-28 Jeffrey Oldham <oldham@codesourcery.com>
* jvgenmain.c (do_mangle_classname): End string constant with '\0'.
Tested on mips-sgi-irix6.5
Approved by Mark Mitchell (mark@codesourcery.com)
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: jvgenmain.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jvgenmain.c,v
retrieving revision 1.23
diff -c -p -r1.23 jvgenmain.c
*** jvgenmain.c 2001/02/09 21:34:57 1.23
--- jvgenmain.c 2001/03/27 18:21:58
*************** do_mangle_classname (string)
*** 168,172 ****
--- 168,173 ----
}
append_gpp_mangled_name (&ptr [-count], count);
obstack_grow (mangle_obstack, "6class$E", 8);
+ obstack_1grow (mangle_obstack, '\0');
return obstack_finish (mangle_obstack);
}