Re: First cut of PowerPC support in NPTL
Jakub Jelinek <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 07, 2003 at 03:08:34PM -0800, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ian Wienand wrote:
>
> > ianw@tartufi:/usr/src/ianw/libc/nptl$ gcc-snap -DDEFINE="part1 part2 part3"
> > gcc: part2: No such file or directory
> > gcc: part3: No such file or directory
> > gcc: no input files
>
> This doesn't look at all like a gcc problem.
>
> Run strace gcc-snap -DDEFINE="a b c" somefile.c. The very first line
> should be something like
>
> execve("/usr/bin/gcc", ["gcc-snap", "-DDEFINE=a b c"], [....]) = 0
>
> Note the second parameter. If this is not the case for you it's a shell
> problem. I very much doubt that the gcc driver is taking the -D
> parameter and splits it so that it can use parts of it as input file
> names. If it does some DOS-style in-program argument parsing
> incorrectly spilled over to the Unix side. Very unlikely.
Yeah, my bet is gcc-snap is some shell script which adds -B argument
to xgcc and doesn't use "$@" as it should.
Certainly -DDEFINE="part1 part2 part3" works just fine on gcc trunk
for me.
Jakub