public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/30607]  New: gcj -I x -C doesn't include x as source dir search patch
@ 2007-01-27  0:38 mark at gcc dot gnu dot org
  2007-01-27 10:12 ` [Bug java/30607] " mtrudel at gmx dot ch
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mark at gcc dot gnu dot org @ 2007-01-27  0:38 UTC (permalink / raw)
  To: java-prs

Given an directory x with two source files:

- x/a.java
  public class a extends b { }
- x/b.java
  public class b { }

With gcj 4.1.1 it was possible to include x as source patch search dir with -I
and compile as follows:
$ gcj -C -I x x/a.java

With current svn trunk (and ecj1 installed) this gives:
$ /usr/local/gcc43/bin/gcj -C -I x x/a.java
x/a.java:1: error: b cannot be resolved to a type
        public class a extends b { }
                               ^
1 problem (1 error)


-- 
           Summary: gcj -I x -C doesn't include x as source dir search patch
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
@ 2007-01-27 10:12 ` mtrudel at gmx dot ch
  2007-01-29 19:16 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mtrudel at gmx dot ch @ 2007-01-27 10:12 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from mtrudel at gmx dot ch  2007-01-27 10:12 -------
I can confirm that. However, I don't know if it's a bug or just luck that it
worked before. I think the correct command would be:
gcj -C -Ix x/a.java (no space between -I" and "x")

This way it works and I think (I'm absolutely not sure) this is the official
way.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
  2007-01-27 10:12 ` [Bug java/30607] " mtrudel at gmx dot ch
@ 2007-01-29 19:16 ` tromey at gcc dot gnu dot org
  2007-01-29 19:34 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 19:16 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2007-01-29 19:16 -------
I didn't realize that -I's argument could be separate, but 
now I see this in c.opt:

I
C ObjC C++ ObjC++ Joined Separate
-I <dir>        Add <dir> to the end of the main include path


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-29 19:16:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
  2007-01-27 10:12 ` [Bug java/30607] " mtrudel at gmx dot ch
  2007-01-29 19:16 ` tromey at gcc dot gnu dot org
@ 2007-01-29 19:34 ` tromey at gcc dot gnu dot org
  2007-01-29 21:30 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 19:34 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2007-01-29 19:34 -------
Tetsing a patch.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-01-29 19:16:32         |2007-01-29 19:34:11
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-01-29 19:34 ` tromey at gcc dot gnu dot org
@ 2007-01-29 21:30 ` tromey at gcc dot gnu dot org
  2007-01-29 21:38 ` tromey at gcc dot gnu dot org
  2007-01-29 21:39 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 21:30 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from tromey at gcc dot gnu dot org  2007-01-29 21:30 -------
Subject: Bug 30607

Author: tromey
Date: Mon Jan 29 21:30:10 2007
New Revision: 121311

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121311
Log:
        PR java/30607:
        * jvspec.c (lang_specific_driver): Handle separate -I argument.
        * lang.opt (-I): Add 'Separate'.

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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-01-29 21:30 ` tromey at gcc dot gnu dot org
@ 2007-01-29 21:38 ` tromey at gcc dot gnu dot org
  2007-01-29 21:39 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 21:38 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2007-01-29 21:38 -------
Subject: Bug 30607

Author: tromey
Date: Mon Jan 29 21:38:06 2007
New Revision: 121312

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121312
Log:
        PR java/30607:
        * jvspec.c (lang_specific_driver): Handle separate -I argument.
        * lang.opt (-I): Add 'Separate'.

Modified:
    branches/redhat/gcc-4_1-branch-java-merge-20070117/gcc/java/ChangeLog
    branches/redhat/gcc-4_1-branch-java-merge-20070117/gcc/java/jvspec.c
    branches/redhat/gcc-4_1-branch-java-merge-20070117/gcc/java/lang.opt


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug java/30607] gcj -I x -C doesn't include x as source dir search patch
  2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-01-29 21:38 ` tromey at gcc dot gnu dot org
@ 2007-01-29 21:39 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 21:39 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from tromey at gcc dot gnu dot org  2007-01-29 21:39 -------
Fix checked in.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30607


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-29 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-27  0:38 [Bug java/30607] New: gcj -I x -C doesn't include x as source dir search patch mark at gcc dot gnu dot org
2007-01-27 10:12 ` [Bug java/30607] " mtrudel at gmx dot ch
2007-01-29 19:16 ` tromey at gcc dot gnu dot org
2007-01-29 19:34 ` tromey at gcc dot gnu dot org
2007-01-29 21:30 ` tromey at gcc dot gnu dot org
2007-01-29 21:38 ` tromey at gcc dot gnu dot org
2007-01-29 21:39 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).