PATCH: PR driver/47547: WHOPR, can't use /dev/null as an output file

H.J. Lu hjl.tools@gmail.com
Mon Jan 31 21:31:00 GMT 2011


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.



More information about the Gcc-patches mailing list