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]

Fix libjava build problem


The libgcj final link was complaining about missing __gxx_personality_0. 
It looks like the C++ compiler started to emit references to this for 
the generated character converter files in gnu/gcj/convert. This patch 
fixes.

regards

Bryce.


2001-10-22  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

	* gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
	* gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
	* gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
	* gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
	file.

Index: JIS0208_to_Unicode.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/JIS0208_to_Unicode.cc,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 JIS0208_to_Unicode.cc
--- JIS0208_to_Unicode.cc	1999/04/07 14:52:33	1.1.1.1
+++ JIS0208_to_Unicode.cc	2001/10/22 05:34:10
@@ -1,4 +1,5 @@
 /* This file is automatically generated from JIS0208.TXT. */
+#pragma GCC java_exceptions
 unsigned short JIS0208_to_Unicode[84][94] = {
 /* 1st byte: 33 */ { 
   /* 2nd byte: 33 */ 0x3000,
Index: JIS0212_to_Unicode.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/JIS0212_to_Unicode.cc,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 JIS0212_to_Unicode.cc
--- JIS0212_to_Unicode.cc	1999/04/07 14:52:33	1.1.1.1
+++ JIS0212_to_Unicode.cc	2001/10/22 05:34:11
@@ -1,4 +1,5 @@
 /* This file is automatically generated from JIS0212.TXT. */
+#pragma GCC java_exceptions
 unsigned short JIS0212_to_Unicode[76][94] = {
 /* 1st byte: 34 */ { 
   0,
Index: Unicode_to_JIS.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/Unicode_to_JIS.cc,v
retrieving revision 1.1
diff -u -r1.1 Unicode_to_JIS.cc
--- Unicode_to_JIS.cc	1999/04/16 17:25:05	1.1
+++ Unicode_to_JIS.cc	2001/10/22 05:34:15
@@ -1,4 +1,5 @@
 /* This file is automatically generated. */
+#pragma GCC java_exceptions
 unsigned short Unicode_to_JIS[] = {
  /* branch: 0x0XXX */ 16,
  /* branch: 0x1XXX */ 0,
Index: gen-from-JIS.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/gen-from-JIS.c,v
retrieving revision 1.4
diff -u -r1.4 gen-from-JIS.c
--- gen-from-JIS.c	2000/03/07 19:55:24	1.4
+++ gen-from-JIS.c	2001/10/22 05:34:15
@@ -106,6 +106,8 @@
 
   fprintf(out,"/* This file is automatically generated from %s.TXT. */\n",
 	  argv[1]);
+  fprintf(out,"#pragma GCC java_exceptions\n",
+	  argv[1]);
   fprintf(out, "unsigned short %s_to_Unicode[%d][%d] = {\n",
 	  argv[1], max1 - min1 + 1,  max2 - min2 + 1);
   i = 0;

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