From 6e933b471601ea3c21b02d3d377e416420fc56a8 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 4 Apr 2005 21:00:49 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 5 +++++ libiberty/testsuite/test-pexecute.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 6e9bf117b5c..169c821e5ac 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2005-04-04 Ian Lance Taylor + + * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable + declaration before statement. + 2005-04-02 Kaveh R. Ghazi * bcmp.c: Fix warnings and implement using memcmp. diff --git a/libiberty/testsuite/test-pexecute.c b/libiberty/testsuite/test-pexecute.c index c67bcefb8f6..dfb5413453e 100644 --- a/libiberty/testsuite/test-pexecute.c +++ b/libiberty/testsuite/test-pexecute.c @@ -208,11 +208,12 @@ main (int argc, char **argv) do \ { \ int err; \ + const char *pex_run_err; \ if (trace) \ fprintf (stderr, "Line %d: running %s %s\n", \ __LINE__, EXECUTABLE, ARGV[0]); \ - const char *pex_run_err = pex_run (PEXOBJ, FLAGS, EXECUTABLE, \ - ARGV, OUTNAME, ERRNAME, &err); \ + pex_run_err = pex_run (PEXOBJ, FLAGS, EXECUTABLE, ARGV, OUTNAME, \ + ERRNAME, &err); \ if (pex_run_err != NULL) \ FATAL_ERROR (pex_run_err, err); \ } \ -- 2.30.2