From: Nick Clifton Date: Tue, 8 Jan 2008 08:37:13 +0000 (+0000) Subject: PR gas/5322 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9396508db2edbe0bf16cab534c07037b112908e4;p=binutils-gdb.git PR gas/5322 * lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub command. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 315e2dd9152..cedaa25750c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-01-08 John David Anglin + + PR gas/5322 + * lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub + command. + 2008-01-05 H.J. Lu * gas/i386/intel.s: Add tests for fadd, faddp, fdiv, fdivp, diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp index 112bb5270a8..af9f5659696 100644 --- a/gas/testsuite/lib/gas-defs.exp +++ b/gas/testsuite/lib/gas-defs.exp @@ -63,7 +63,8 @@ proc gas_host_run { cmd redir } { set command "$cmd 2>gas.stderr" set return_contents_of "gas.stderr" } elseif [regexp ">&.*" $redir] then { - set output_file [regsub ">&" $redir ""] + # See PR 5322 for why the following line is used. + regsub ">&" $redir "" output_file set command "$cmd 2>&1" } elseif [regexp "2>.*" $redir] then { set output_file "gas.out"