fix for CLASSPATH/classpath switch behaviour

Nic Ferrier nferrier@tapsellferrier.co.uk
Sun Feb 10 12:48:00 GMT 2002


The current GCJ switches are incompatible with Sun's. This means it's
very difficult to write portable makefiles or to switch from Sun's
compiler to GCJ.

The attached patch fixes the switching problem for the following
programs:

- gcj
- jcf-dump
- gcjh

The patch also fixes the GCJ texinfo manual.


Here's a changelog description:

        * gcc/gcc.c (struct option_map): make classpath options javac
          compatible; -classpath overrides env var, -bootclasspath
          overrides system path.
        * gcc/java/gcj.texi (Input options): ditto.
        * gcc/java/gjavah.c (struct option, help, main): ditto.
        * jcf-dump.c (struct options, help, main): ditto.
        * jv-spec.c (jvgenmain_spec, lang_specific_driver): ditto.
        * lang-options.h: ditto.
        * lang.c (java_decode_option): ditto.  
        * jcf.h, jcf-path.c (struct entry): change meaning of options.
          (jcf_path_classpath_arg): changed meaning of option.
          (jcf_path_bootclasspath_arg): new function.
          (jcf_path_CLASSPATH_arg): removed.


Comments are most welcome (including about the format of my changelog
entry).



Nic Ferrier

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-switch.diff
Type: text/x-patch
Size: 14409 bytes
Desc: classpath switch patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020210/aa1d6644/attachment.bin>


More information about the Java-patches mailing list