From 9396508db2edbe0bf16cab534c07037b112908e4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 8 Jan 2008 08:37:13 +0000 Subject: [PATCH] PR gas/5322 * lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub command. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/lib/gas-defs.exp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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" -- 2.30.2