Fix quoting for RUNTESTFLAGS in gcc/.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 11 Oct 2010 18:02:41 +0000 (18:02 +0000)
committerRalf Wildenhues <rwild@gcc.gnu.org>
Mon, 11 Oct 2010 18:02:41 +0000 (18:02 +0000)
gcc/:
* Makefile.in ($(lang_checks_parallel))
($(lang_checks_parallelized)): Use single quotes for
$(RUNTESTFLAGS), to allow passing quoted content.

From-SVN: r165323

gcc/ChangeLog
gcc/Makefile.in

index d7f8da4..a0743bd 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * Makefile.in ($(lang_checks_parallel))
+       ($(lang_checks_parallelized)): Use single quotes for
+       $(RUNTESTFLAGS), to allow passing quoted content.
+
        PR bootstrap/35855
        * opt-functions.awk (BEGIN): New section.
        (lower, upper, digit, alnum): New variables.
index 8405789..0dc8214 100644 (file)
@@ -4890,7 +4890,7 @@ $(lang_checks_parallel): site.exp
        variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
        vardots=`echo "$$variant" | sed 's,/,.,g'`; \
        $(MAKE) TESTSUITEDIR="testsuite.$$vardots" \
-         RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
+         RUNTESTFLAGS="--target_board=$$variant "'$(RUNTESTFLAGS)' \
          "$$target"
 
 TESTSUITEDIR = testsuite
@@ -4949,9 +4949,9 @@ check_p_subdirs=$(wordlist 1,$(words $(check_$*_parallelize)),$(check_p_numbers)
 # to lang_checks_parallelized variable and define check_$lang_parallelize
 # variable (see above check_gcc_parallelize description).
 $(lang_checks_parallelized): check-% : site.exp
-       @if [ -z "$(filter-out --target_board=%, $(RUNTESTFLAGS))" ] \
+       @if [ -z '$(filter-out --target_board=%, $(RUNTESTFLAGS))' ] \
            && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \
-         $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
+         $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS='$(RUNTESTFLAGS)' \
            check-parallel-$* \
            $(patsubst %,check-parallel-$*_%, $(check_p_subdirs)); \
          for file in $(TESTSUITEDIR)/$*/$* \
@@ -4968,7 +4968,7 @@ $(lang_checks_parallelized): check-% : site.exp
            $(patsubst %,$(TESTSUITEDIR)/$*%/$*.log.sep,$(check_p_subdirs)) \
            > $(TESTSUITEDIR)/$*/$*.log; \
        else \
-         $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
+         $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS='$(RUNTESTFLAGS)' \
            check_$*_parallelize= check-parallel-$*; \
        fi