[cfe-commits] [PATCH] Extend support of '-Bprefix' functionality

Simon Atanasyan satanasyan at mips.com
Fri Oct 26 02:45:08 PDT 2012

Hi Rafael,

Thanks for your review.

On Fri, Oct 26, 2012 at 7:35 AM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> Instead of creating files at runtime like
> +// RUN: touch %t.dir/dir1/i386-unknown-linux-ld
> +// RUN: chmod u+x %t.dir/dir1/i386-unknown-linux-ld
> it is probably better to check them in as the other driver tests do.

Good point. I just forgot about  svn:executable property. Fixed patch
is attached to the mail. Please review it.

> Is this a new feature in gcc? I am trying gcc 4.6 from fedora. I have
> gold in ~/inst/binutils/bin/ld. I created a foobar-ld link to ld and
> tried

This is an old gcc feature. Here is the description:

And here is a reproduction script:
$ gcc --version
gcc (Debian 4.4.5-8) 4.4.5

$ ln -s /usr/bin/as pref-as
$ ln -s /usr/lib/gcc/i486-linux-gnu/4.4.5/collect2 pref-collect2

$ gcc -Bpref- -v check.c
pref-as -V -Qy -o /tmp/ccmc6KMn.o /tmp/ccFEghyX.s
pref-collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both <snip>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: b-opt.patch
Type: application/octet-stream
Size: 3472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121026/3d74bd05/attachment.obj>

More information about the cfe-commits mailing list