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

Simon Atanasyan satanasyan at mips.com
Tue Oct 30 13:53:54 PDT 2012


On Fri, Oct 26, 2012 at 1:45 PM, Simon Atanasyan <satanasyan at mips.com> wrote:
> 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
> <snip>
>>
>> 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:
> http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html
>
> 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
> <snip>
> pref-as -V -Qy -o /tmp/ccmc6KMn.o /tmp/ccFEghyX.s
> <snip>
> pref-collect2 --build-id --eh-frame-hdr -m elf_i386 --hash-style=both <snip>

Ping?




More information about the cfe-commits mailing list