Bug 15578 - gcj doesn't support -extdirs
Summary: gcj doesn't support -extdirs
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: patch
Depends on:
Blocks: 1374 17574
  Show dependency treegraph
 
Reported: 2004-05-21 23:32 UTC by Tom Tromey
Modified: 2004-10-13 17:05 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-09-23 18:43:48


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2004-05-21 23:32:39 UTC
gcj supports --extdirs, but not -extdirs (single dash).
This is needed if "gcj -C" is going to be compatible
with "javac", which has been a longstanding goal.
Comment 1 Andrew Pinski 2004-05-21 23:34:20 UTC
Confirmed.
Comment 2 Tom Tromey 2004-09-23 00:49:22 UTC
Right now if I use "--extdirs foo" I get an error:

opsy. gcj --syntax-only --extdirs lib -Isrc src/org/jacorb/config/Configuration.java
jc1: error: unrecognized command line option "-fextdirs"

However, if I use --extdirs=lib, it works.
Comment 3 Tom Tromey 2004-09-23 18:43:48 UTC
Testing a patch.
Comment 4 Andrew Pinski 2004-09-23 19:20:04 UTC
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02420.html>.
Comment 5 CVS Commits 2004-10-13 17:04:04 UTC
Subject: Bug 15578

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-10-13 17:03:58

Modified files:
	gcc            : ChangeLog gcc.c 

Log message:
	PR java/15578:
	* gcc.c (option_map): Added --extdirs and --encoding.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5861&r2=2.5862
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.435&r2=1.436

Comment 6 CVS Commits 2004-10-13 17:05:03 UTC
Subject: Bug 15578

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-10-13 17:04:58

Modified files:
	gcc/java       : ChangeLog lang.opt jvspec.c 

Log message:
	PR java/15578:
	* lang.opt (--extdirs): Document.
	* jvspec.c (lang_specific_driver): Recognize -encoding and
	-extdirs.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1482&r2=1.1483
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/lang.opt.diff?cvsroot=gcc&r1=1.10&r2=1.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jvspec.c.diff?cvsroot=gcc&r1=1.66&r2=1.67

Comment 7 Tom Tromey 2004-10-13 17:05:54 UTC
Fix checked in.