From: Uros Bizjak Date: Tue, 22 Nov 2016 18:19:58 +0000 (+0100) Subject: Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument. X-Git-Tag: releases/gcc-5.5.0~691 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f33f8590cd469f4bc5123e57f149e3d0dfbd4081;p=thirdparty%2Fgcc.git Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument. gcc/ChangeLog * Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument. gcc/ada/ChangeLog * gcc-interface/Make-lang.in (check-acats): Fix detection of -j argument. libstdc++-v3/ChangeLog * testsuite/Makefile.am (check-DEJAGNU $(check_DEJAGNU_normal_targets)): Fix detection of -j argument. * testsuite/Makefile.in: Regenereate. From-SVN: r242716 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 40ca4dcaab75..20b262e7df89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-22 Uros Bizjak + + * Makefile.in ($(lang_checks_parallelized)): Fix detection + of -j argument. + 2016-11-15 Matthias Klose * doc/install.texi: Move the 'Overriding configure test results' diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 93746efdc34d..89bef144dcb6 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3739,7 +3739,7 @@ check_p_subdirs=$(wordlist 1,$(check_p_count),$(wordlist 1, \ # variable (see above check_gcc_parallelize description). $(lang_checks_parallelized): check-% : site.exp -rm -rf $(TESTSUITEDIR)/$*-parallel - @if [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \ + @if [ -n "$(filter -j%, $(MFLAGS))" ]; then \ test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR) || true; \ test -d $(TESTSUITEDIR)/$*-parallel || mkdir $(TESTSUITEDIR)/$*-parallel || true; \ GCC_RUNTEST_PARALLELIZE_DIR=`${PWD_COMMAND}`/$(TESTSUITEDIR)/$(check_p_tool)-parallel ; \ diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 4e35ef40dbee..8f904d3b2619 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2016-11-22 Uros Bizjak + + * gcc-interface/Make-lang.in (check-acats): Fix detection + of -j argument. + 2016-11-13 Bob Duff * gcc-interface/decl.c (gnat_to_gnu_entity): In assertion about known diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in index bef0a6786eba..72ccae5d68fe 100644 --- a/gcc/ada/gcc-interface/Make-lang.in +++ b/gcc/ada/gcc-interface/Make-lang.in @@ -887,7 +887,7 @@ check-acats: @test -d $(ACATSDIR) || mkdir -p $(ACATSDIR); \ rootme=`${PWD_COMMAND}`; export rootme; \ EXPECT=$(EXPECT); export EXPECT; \ - if [ -z "$(CHAPTERS)" ] && [ "$(filter -j, $(MFLAGS))" = "-j" ]; \ + if [ -z "$(CHAPTERS)" ] && [ -n "$(filter -j%, $(MFLAGS))" ]; \ then \ rm -rf $(ACATSDIR)-parallel; \ mkdir $(ACATSDIR)-parallel; \ diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 26ec7c105d84..72012146b78c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2016-11-22 Uros Bizjak + + * testsuite/Makefile.am + (check-DEJAGNU $(check_DEJAGNU_normal_targets)): Fix detection + of -j argument. + * testsuite/Makefile.in: Regenereate. + 2016-11-15 Jonathan Wakely * testsuite/experimental/any/typedefs.cc: Fix license text. @@ -365,7 +372,7 @@ 2016-07-04 Ville Voutilainen Backport from mainline - 2016-07-04 Ville Voutilainen + 2016-07-04 Ville Voutilainen PR libstdc++/71313 * src/filesystem/ops.cc (remove_all(const path&, error_code&)): diff --git a/libstdc++-v3/testsuite/Makefile.am b/libstdc++-v3/testsuite/Makefile.am index c54ad6498521..ea7c9a3dc788 100644 --- a/libstdc++-v3/testsuite/Makefile.am +++ b/libstdc++-v3/testsuite/Makefile.am @@ -117,7 +117,7 @@ $(check_DEJAGNU_normal_targets): check-DEJAGNUnormal%: normal%/site.exp check-DEJAGNU $(check_DEJAGNU_normal_targets): check-DEJAGNU%: site.exp $(if $*,@)AR="$(AR)"; export AR; \ RANLIB="$(RANLIB)"; export RANLIB; \ - if [ -z "$*" ] && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \ + if [ -z "$*" ] && [ -n "$(filter -j%, $(MFLAGS))" ]; then \ rm -rf normal-parallel || true; \ mkdir normal-parallel; \ $(MAKE) $(AM_MAKEFLAGS) $(check_DEJAGNU_normal_targets); \ diff --git a/libstdc++-v3/testsuite/Makefile.in b/libstdc++-v3/testsuite/Makefile.in index e0e7114147d7..4f67a37966db 100644 --- a/libstdc++-v3/testsuite/Makefile.in +++ b/libstdc++-v3/testsuite/Makefile.in @@ -597,7 +597,7 @@ $(check_DEJAGNU_normal_targets): check-DEJAGNUnormal%: normal%/site.exp check-DEJAGNU $(check_DEJAGNU_normal_targets): check-DEJAGNU%: site.exp $(if $*,@)AR="$(AR)"; export AR; \ RANLIB="$(RANLIB)"; export RANLIB; \ - if [ -z "$*" ] && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \ + if [ -z "$*" ] && [ -n "$(filter -j%, $(MFLAGS))" ]; then \ rm -rf normal-parallel || true; \ mkdir normal-parallel; \ $(MAKE) $(AM_MAKEFLAGS) $(check_DEJAGNU_normal_targets); \