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]

Extending gen-classpath-compare


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Tom,


I wrote a little patch some time ago to gen-classpath-compare and want 
put it now into CVS. It changes the generation of the classpath 
comparision in a way to tell the visitior of the page which classes 
has to have differences.

Please review and comment.

Another way to find the classes which should have differences is to 
grep the diff files but I somehow dont wanted this.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/dGA0WSOgCCdjSDsRAj1FAKCdBDmmj8TC7z/TOGmFewATrJJpOgCfalKz
aPllP+9WQYPyMrDnSBgN7OE=
=sN+e
-----END PGP SIGNATURE-----
Index: gen-classpath-compare
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/gen-classpath-compare,v
retrieving revision 1.6
diff -u -b -B -r1.6 gen-classpath-compare
--- gen-classpath-compare	25 Apr 2003 11:39:11 -0000	1.6
+++ gen-classpath-compare	26 Sep 2003 15:36:23 -0000
@@ -64,9 +64,20 @@
 Yes='<td>Yes</td>'
 VmSpec='<td>VM-specific</td>'
 GCJSpec='<td>GCJ-specific</td>'
+GCJModified='<td>GCJ-modified</td>'
 Empty='<td>&nbsp;</td>'
 
-GCJSpecClasses='java.lang.EcosProcess java.lang.PosixProcess java.lang.Win32Process'
+GCJSpecClasses='java.awt.Toolkit
+	java.lang.Character
+	java.lang.Double
+	java.lang.EcosProcess
+	java.lang.Float
+	java.lang.PosixProcess
+	java.lang.StringBuffer
+	java.lang.System
+	java.lang.Win32Process
+	java.lang.reflect.Modifier
+	java.lang.ref.Reference'
 
 # Note: for now, we omit much of gnu.*, as it differs too much.
 (cd $LIBGCJ; find . -name '*.java' -print;
@@ -110,16 +121,22 @@
 	 rm -f $tmp
       fi
    elif test -f "$CLASSPATH/vm/reference/$f"; then
-      clp="$VmSpec"
-      Merge="$Empty"
+      clp="$Yes"
+      Merge="$Yes"
    fi
 
    
    echo "$GCJSpecClasses" | grep -q "$class"
    if test "$?" = "0"
    then
-      clp="$GCJSpec"
+      if test "$clp" = "$No"
+      then
+         gcj="$GCJSpec"
+	 clp="$Empty"
       Merge="$Empty"
+      else
+         gcj="$GCJModified"
+      fi
    fi
 
    if test "$gcj" = "$Yes" && test "$clp" = "$Yes" && test "$Merge" = "$Yes"

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