This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: RFA: fix PR java/15578 (not just a java patch)
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Fri, 24 Sep 2004 09:45:58 +0100
- Subject: Patch: RFA: fix PR java/15578 (not just a java patch)
- References: <m3ekks24g9.fsf@localhost.localdomain>
Tom Tromey writes:
> This patch fixes PR 15578.
>
> We want to accept "-extdirs" and "-encoding" (single dash) in addition
> to the double-dash long forms. This is needed for compatibility with
> javac. Also it seems to me that if we support "--option=value" we
> should also support the "--option value" form.
>
> This patch accomplishes this by modifications in a few places. It
> occurred to me later that this could perhaps be cleaned up a bit by
> moving the "--" forms out of gcc.c and handling it all purely in
> jvspec.c. Is that preferable? I left it as is, following existing
> code. If it is preferable to do it the other way I'll write a patch
> that removes the java-specific bits from gcc.c:option_map.
>
> Comments? Ok?
>
> Tom
>
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> PR java/15578:
> * gcc.c (option_map): Added --extdirs and --encoding.
>
This is OK by me, but I agree we should probably move this stuff to
jvspec.c. Perhaps not in Stage 3, though.
Andrew.