summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-26 09:53:24 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-26 09:53:24 +0000
commitf3599371eb5580c1a1112b1d72fbeada7c5f3594 (patch)
treee731752c0454627b495181f1d77149b4e842411d /gcc
parent22268f3882eb9b7bbf2cc2b5f2e9bd06e82bc98f (diff)
downloadgcc-f3599371eb5580c1a1112b1d72fbeada7c5f3594.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167172 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rwxr-xr-xgcc/configure8
-rw-r--r--gcc/configure.ac8
-rw-r--r--gcc/exec-tool.in2
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 <michael.haubenwallner@salomon.at>
+
+ 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 <rguenther@suse.de>
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