From 4a150fc83a4d64ff1c3dbf723ee5c33604d2324d Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Fri, 26 Nov 2010 10:53:24 +0100 Subject: [PATCH] re PR target/33637 ("checking for nm: test: too many arguments" causes "Undefined symbol: __gxx_personality_v0") PR target/33637 * configure.ac: Accept extra arguments for AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET. * configure: Regenerated. * exec-tool.in: Not quoting command, may have extra arguments. From-SVN: r167172 --- gcc/ChangeLog | 8 ++++++++ gcc/configure | 8 ++++---- gcc/configure.ac | 8 ++++---- gcc/exec-tool.in | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44883d0b303..8cfc9633963 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-11-26 Michael Haubenwallner + + PR target/33637 + * configure.ac: Accept extra arguments for AS_FOR_TARGET, + LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET. + * configure: Regenerated. + * exec-tool.in: Not quoting command, may have extra arguments. + 2010-11-26 Richard Guenther PR tree-optimization/46528 diff --git a/gcc/configure b/gcc/configure index ec4ba8e7fdd..ce8a6762fa6 100755 --- a/gcc/configure +++ b/gcc/configure @@ -20673,7 +20673,7 @@ elif test -f $gcc_cv_as_gas_srcdir/configure.in \ elif test -x as$build_exeext; then # Build using assembler in the current directory. gcc_cv_as=./as$build_exeext -elif test -x $AS_FOR_TARGET; then +elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then gcc_cv_as="$AS_FOR_TARGET" else # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. @@ -20794,7 +20794,7 @@ elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ elif test -x collect-ld$build_exeext; then # Build using linker in the current directory. gcc_cv_ld=./collect-ld$build_exeext -elif test -x $LD_FOR_TARGET; then +elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then gcc_cv_ld="$LD_FOR_TARGET" else # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. @@ -20921,7 +20921,7 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_nm=../binutils/nm-new$build_exeext elif test -x nm$build_exeext; then gcc_cv_nm=./nm$build_exeext -elif test -x $NM_FOR_TARGET; then +elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then gcc_cv_nm="$NM_FOR_TARGET" else # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. @@ -21001,7 +21001,7 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_objdump=../binutils/objdump$build_exeext elif test -x objdump$build_exeext; then gcc_cv_objdump=./objdump$build_exeext -elif test -x $OBJDUMP_FOR_TARGET; then +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then gcc_cv_objdump="$OBJDUMP_FOR_TARGET" else # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. diff --git a/gcc/configure.ac b/gcc/configure.ac index 0eb2d8bddee..b8f35af93e8 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1854,7 +1854,7 @@ elif test -f $gcc_cv_as_gas_srcdir/configure.in \ elif test -x as$build_exeext; then # Build using assembler in the current directory. gcc_cv_as=./as$build_exeext -elif test -x $AS_FOR_TARGET; then +elif ( set dummy $AS_FOR_TARGET; test -x $[2] ); then gcc_cv_as="$AS_FOR_TARGET" else AC_PATH_PROG(gcc_cv_as, $AS_FOR_TARGET) @@ -1909,7 +1909,7 @@ elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ elif test -x collect-ld$build_exeext; then # Build using linker in the current directory. gcc_cv_ld=./collect-ld$build_exeext -elif test -x $LD_FOR_TARGET; then +elif ( set dummy $LD_FOR_TARGET; test -x $[2] ); then gcc_cv_ld="$LD_FOR_TARGET" else AC_PATH_PROG(gcc_cv_ld, $LD_FOR_TARGET) @@ -1982,7 +1982,7 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_nm=../binutils/nm-new$build_exeext elif test -x nm$build_exeext; then gcc_cv_nm=./nm$build_exeext -elif test -x $NM_FOR_TARGET; then +elif ( set dummy $NM_FOR_TARGET; test -x $[2] ); then gcc_cv_nm="$NM_FOR_TARGET" else AC_PATH_PROG(gcc_cv_nm, $NM_FOR_TARGET) @@ -2015,7 +2015,7 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_objdump=../binutils/objdump$build_exeext elif test -x objdump$build_exeext; then gcc_cv_objdump=./objdump$build_exeext -elif test -x $OBJDUMP_FOR_TARGET; then +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then gcc_cv_objdump="$OBJDUMP_FOR_TARGET" else AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET) diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index 020294e0083..0ae8f2aa73a 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -80,7 +80,7 @@ case "$original" in fi ;; *) - exec "$original" ${1+"$@"} + exec $original ${1+"$@"} ;; esac