This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: spaces in filenames/paths


root wrote:
^^^^--- ??? :-P


>  > I think this is passed to gcj correctly, so I suspect that the backend
>  > jc1 isn't getting it as a whole argument but as 3 in this case.
> 
> It's possible, but I don't think so.  I think it's probably a bug elsewhere.
> 
> If you produce a standalone testcase I'll have a look.

Mainline on i686-pc-linux-gnu produces:
----------------------------- 8< -----------------------------
~/src/test > cat "foo bar/hello.c"
int main( void) { return 0; }

~/src/test > $HOME/src/gcc/build/gcc/xgcc -B $HOME/src/gcc/build/gcc/ 'foo bar/hello.c'

~/src/test > cat "foo bar/Hello.java"
public class Hello { }

~/src/test > $HOME/src/gcc/build/gcc/gcj -B $HOME/src/gcc/build/gcc/ 'foo bar/Hello.java'
foo:0: fatal error: can't open bar/Hello.java: No such file or directory
compilation terminated.
----------------------------- 8< -----------------------------

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]