spaces in filenames/paths

Andrew Haley aph@redhat.com
Mon Jun 14 12:27:00 GMT 2004


Ranjit Mathew writes:
 > 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< -----------------------------
This seems to be part of Per's "compiling multiple Java source files
at once" patch from
http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01003.html
+	 char *ch = *next;
+	 if (ch == '\n' || ch == '\r' || ch == '\t' || ch == ' '
+	 || ch == '&' /* FIXME */)
but are you sure that this is what Ant's gcj compiler adapter is doing?
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /