From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2100) id 1C5C33861012; Sat, 22 Aug 2020 21:56:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C5C33861012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598133406; bh=K/JrTNs5npIU+1cywkYFYUQWuB3sW3iPeTnhNjUtOc0=; h=From:To:Subject:Date:From; b=Lo6PQKDzKNyqEMeoplRtjM3GSOMeNya+PvwrZZKB27jYehyDgOA8GgZvRI4Symbji tZNNFd38VmX/qPy8uvm+QB4KrfbnkL94iJb5LPJCdeDpAvHZdnluYtfVWdknhsby2Y 3ivE6JQlZ2Py6TRqrKRSOnE1az5KiQNDn9rulWYo= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Giuliano Belinassi To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/autopar_devel] Fix missing dependencies for selftests which occasionally causes failed builds. X-Act-Checkin: gcc X-Git-Author: Romain Naour X-Git-Refname: refs/heads/devel/autopar_devel X-Git-Oldrev: ec7d06833857aab149ce04d6d93a378354e4ed76 X-Git-Newrev: cfa9cc467e0655e6cf1fbe4d3f56689e4887a57d Message-Id: <20200822215646.1C5C33861012@sourceware.org> Date: Sat, 22 Aug 2020 21:56:46 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 21:56:46 -0000 https://gcc.gnu.org/g:cfa9cc467e0655e6cf1fbe4d3f56689e4887a57d commit cfa9cc467e0655e6cf1fbe4d3f56689e4887a57d Author: Romain Naour Date: Wed Jun 3 12:30:57 2020 -0600 Fix missing dependencies for selftests which occasionally causes failed builds. gcc/ * Makefile.in (SELFTEST_DEPS): Move before including language makefile fragments. Diff: --- gcc/Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index aab1dbba57b..be11311b60d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1735,6 +1735,10 @@ $(FULL_DRIVER_NAME): ./xgcc$(exeext) $(LN_S) $< $@ # +# SELFTEST_DEPS need to be set before including language makefile fragments. +# Otherwise $(SELFTEST_DEPS) is empty when used from /Make-lang.in. +SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests + # Language makefile fragments. # The following targets define the interface between us and the languages. @@ -2010,8 +2014,6 @@ DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null) SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \ -fself-test=$(srcdir)/testsuite/selftests -SELFTEST_DEPS = $(GCC_PASSES) stmp-int-hdrs $(srcdir)/testsuite/selftests - # Run the selftests during the build once we have a driver and the frontend, # so that self-test failures are caught as early as possible. # Use "s-selftest-FE" to ensure that we only run the selftests if the