]> Savannah Git Hosting - gnulib.git/commitdiff
javacomp-script, javacomp: Update comments.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Mar 2018 11:55:42 +0000 (12:55 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Mar 2018 12:06:16 +0000 (13:06 +0100)
* m4/javacomp.m4: Update comments regarding gcj.
* lib/javacomp.h: Likewise.

ChangeLog
lib/javacomp.h
m4/javacomp.m4

index ed98b4ff58d58b722d307fc61ae673cf65e72776..01bf93b7e14c5cf631525a0a7e989e0ce9803181 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-03-24  Bruno Haible  <bruno@clisp.org>
+
+       javacomp-script, javacomp: Update comments.
+       * m4/javacomp.m4: Update comments regarding gcj.
+       * lib/javacomp.h: Likewise.
+
 2018-03-24  Bruno Haible  <bruno@clisp.org>
 
        javacomp-script, javacomp: Fix support for Java 7, 8, 9.
index 3d73a9205ba31f3cca4d89f3aad849713124b55c..53e752d70f142089a3eb82c318f10d226b462aa6 100644 (file)
    because even Sun's/Oracle's javac doesn't support these combinations.
    It is redundant to ask for a target_version > source_version, since the
    smaller target_version = source_version will also always work and newer JVMs
-   support the older target_versions too. Except for the case
-   target_version = 1.4, source_version = 1.3, which allows gcj versions 3.0
-   to 3.2 to be used.
+   support the older target_versions too. Except for the cases
+     - target_version = 1.4, source_version = 1.3, which allows gcj versions 3.0
+       to 3.2 to be used,
+     - target-version = 1.6, source-version = 1.5, which allows gcj versions
+       >= 4.3 to be used.
 
    directory is the target directory. The .class file for class X.Y.Z is
    written at directory/X/Y/Z.class. If directory is NULL, the .class
index 720630fb241d1850e256ec966daf7257d2fcd9b4..24c0d58c98f057111d153f495e364cbd64d9027b 100644 (file)
@@ -1,4 +1,4 @@
-# javacomp.m4 serial 14
+# javacomp.m4 serial 15
 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2018 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -42,15 +42,17 @@ dnl with or without modifications, as long as this notice is preserved.
 #           1.1         JDK 1.1, jview
 #           1.2         JDK/JRE 1.2
 #           1.3         JDK/JRE 1.3, gij 3.3, 3.4
-#           1.4         JDK/JRE 1.4, gij 4.0, 4.1
-#           1.5         JDK/JRE 5
+#           1.4         JDK/JRE 1.4, gij 4.0 ... 4.2
+#           1.5         JDK/JRE 5, gij 4.3 ... 6
 #           1.6         JDK/JRE 6
 #           1.7         JDK/JRE 7
 #           1.8         JDK/JRE 8
 #           9           JDK/JRE 9
 # Note: gij >= 3.3 can in some cases handle classes compiled with -target 1.4,
 # and gij >= 4.1 can in some cases partially handle classes compiled with
-# -target 1.5, but I have no idea how complete this support is.
+# -target 1.5, but I have no idea how complete this support is. Similarly,
+# gcj >= 4.3 supports -ftarget=1.6, and gij >= 4.3 can in some cases handle
+# classes compiled with -target 1.6.
 #
 # Specifying target-version is useful when building a library (.jar) that is
 # useful outside the given package. Omitting target-version is useful when
@@ -67,9 +69,11 @@ dnl with or without modifications, as long as this notice is preserved.
 #
 # It is redundant to ask for a target-version > source-version, since the
 # smaller target-version = source-version will also always work and newer JVMs
-# support the older target-versions too. Except for the case
-# target-version = 1.4, source-version = 1.3, which allows gcj versions 3.0
-# to 3.2 to be used.
+# support the older target-versions too. Except for the cases
+#   - target-version = 1.4, source-version = 1.3, which allows gcj versions 3.0
+#     to 3.2 to be used,
+#   - target-version = 1.6, source-version = 1.5, which allows gcj versions
+#     >= 4.3 to be used.
 
 AC_DEFUN([gt_JAVACOMP],
 [
@@ -178,7 +182,8 @@ changequote([,])dnl
   dnl   bytecode, which crashes with a VerifyError when executed by Sun Java
   dnl   1.3.1. The bug is registered as java/7066, see
   dnl   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7066
-  dnl   gcj 4.3 and newer has an option -ftarget=1.X.
+  dnl   gcj 4.3 and newer has an option -ftarget=1.X; the maximum supported
+  dnl   target-version is 1.6.
   dnl
   dnl   For gcj < 3.3, the source-version always is 1.3.
   dnl   For 3.3 <= gcj < 4.3, the source-version defaults to 1.4; option