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


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

Java PATCH: Correctly Ending Java Main's (Mainline)


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

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