This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PATCH: PR driver/47547: WHOPR, can't use /dev/null as an output file


On Mon, Jan 31, 2011 at 12:04 PM, Diego Novillo <dnovillo@google.com> wrote:
> On Mon, Jan 31, 2011 at 14:30, H.J. Lu <hjl.tools@gmail.com> wrote:
>
>> spawn -ignore SIGHUP /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
>> -B/export/build/gnu/gcc/build-x86_64-linux/gcc/
>> /export/gnu/import/git/gcc/gcc/testsuite/gcc.dg/pr47547.c -O2
>> -fdump-tree-optimized -S -o /dev/null -S -m32 -o pr47547.s^M
>> cc1: error: output filename specified twice^M
>> compiler exited with status 1
>> output is:
>> cc1: error: output filename specified twice^M
>
> Ah, yes. ?One way to support it would be to define a new dg-lto-do
> string, say "compile-null", and then handle it in lib/lto.exp around
> line 293 with
>
> ? ? ? ? ? ?if { ![string compare "compile-null" $dgdo] } {
> ? ? ? ? ? ? ? ?set compile_type "compile-null"
> ? ? ? ? ? ?}
>
> You will then need to change gcc-dg-test-1 in lib/gcc-dg.exp to handle
> "compile-null" similarly to "compile" but with '-o /dev/null'.
>
> I think that should work.
>

I can work on that when I find time later.

In the meantime, is that OK without a testcase?


-- 
H.J.


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