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]

[3.3 PATCH] ASCII converter vs. static linking


Thomas Pfaff reported a 3.3 build failure on cygwin due to the absence of
Ouptut_ASCII.  Unfortunately cygwin does not yet support shared builds.

I couldn't duplicate the problem, but the workaround seems harmless
enough.

Tested on i686-pc-linux-gnu.  OK for 3.3 branch?

2003-07-10  Jeff Sturm  <jsturm@one-point.com>

	* gnu/gcj/convert/BytesToUnicode.java: Add a dummy reference to
	Input_ASCII.
	* gnu/gcj/convert/UnicodeToBytes.java: Add a dummy reference to
	Output_ASCII.

Index: gnu/gcj/convert/BytesToUnicode.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/BytesToUnicode.java,v
retrieving revision 1.9
diff -c -p -r1.9 BytesToUnicode.java
*** gnu/gcj/convert/BytesToUnicode.java	30 Jul 2001 20:24:17 -0000	1.9
--- gnu/gcj/convert/BytesToUnicode.java	10 Jul 2003 16:31:06 -0000
*************** public abstract class BytesToUnicode ext
*** 33,38 ****
--- 33,41 ----
      = new BytesToUnicode[CACHE_SIZE];
    private static int currCachePos = 0;

+   /* Force the ASCII coverter to be linked to static builds.  */
+   private static Input_ASCII dummy;
+
    public abstract String getName();

    public static BytesToUnicode getDefaultDecoder()
Index: gnu/gcj/convert/UnicodeToBytes.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/convert/UnicodeToBytes.java,v
retrieving revision 1.9.44.1
diff -c -p -r1.9.44.1 UnicodeToBytes.java
*** gnu/gcj/convert/UnicodeToBytes.java	7 Jun 2003 18:42:28 -0000	1.9.44.1
--- gnu/gcj/convert/UnicodeToBytes.java	10 Jul 2003 16:31:07 -0000
*************** public abstract class UnicodeToBytes ext
*** 30,35 ****
--- 30,38 ----
      = new UnicodeToBytes[CACHE_SIZE];
    private static int currCachePos = 0;

+   /* Force the ASCII coverter to be linked to static builds.  */
+   private static Output_ASCII dummy;
+
    public abstract String getName();

    public static UnicodeToBytes getDefaultEncoder()


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