From 9e03592e40e7da85f9779ea1988a69f154d1ba7f Mon Sep 17 00:00:00 2001
From: Eric Botcazou <ebotcazou@gcc.gnu.org>
Date: Mon, 18 Jun 2018 22:01:58 +0000
Subject: [PATCH] Makefile.def (fortran): Add check-target-libgomp-fortran.

	* Makefile.def (fortran): Add check-target-libgomp-fortran.
	* Makefile.tpl (check-target-libgomp-fortran): New phony target.
	* Makefile.in: Regenerate.

From-SVN: r261717
---
 ChangeLog    | 12 +++++++++---
 Makefile.def |  3 ++-
 Makefile.in  |  6 +++++-
 Makefile.tpl |  4 ++++
 4 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 89ba32e171d7..430b793bcdc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+	* Makefile.def (fortran): Add check-target-libgomp-fortran.
+	* Makefile.tpl (check-target-libgomp-fortran): New phony target.
+	* Makefile.in: Regenerate.
+
 2018-06-16  Ben Elliston  <bje@gnu.org>
 
 	* config.guess: Import latest version.
@@ -7,9 +13,9 @@
 
 	* MAINTAINERS: Remove MPX-related entries.
 	* Makefile.def: Remove libmpx support.
-	* Makefile.in: Likewise.
-	* configure: Remove removed files.
-	* configure.ac: Likewise.
+	* Makefile.in: Regenerate.
+	* configure.ac: Remove removed files.
+	* configure: Regenerate.
 	* libmpx/ChangeLog: Remove.
 	* libmpx/Makefile.am: Remove.
 	* libmpx/Makefile.in: Remove.
diff --git a/Makefile.def b/Makefile.def
index 062d2fb3e752..31c2bbcd5491 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -586,7 +586,8 @@ languages = { language=c++;	gcc-check-target=check-c++;
 				lib-check-target=check-target-libgomp-c++; };
 languages = { language=fortran;	gcc-check-target=check-fortran;
 				lib-check-target=check-target-libquadmath;
-				lib-check-target=check-target-libgfortran; };
+				lib-check-target=check-target-libgfortran;
+				lib-check-target=check-target-libgomp-fortran; };
 languages = { language=ada;	gcc-check-target=check-ada;
 				lib-check-target=check-target-libada; };
 languages = { language=objc;	gcc-check-target=check-objc;
diff --git a/Makefile.in b/Makefile.in
index be6b7757cd65..32a92a6bcd17 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52232,6 +52232,10 @@ maintainer-clean-target-libatomic:
 check-target-libgomp-c++:
 	$(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
 
+.PHONY: check-target-libgomp-fortran
+check-target-libgomp-fortran:
+	$(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
+
 @endif target-libgomp
 
 @if target-libitm
@@ -52283,7 +52287,7 @@ check-gcc-fortran:
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 	$(HOST_EXPORTS) \
 	(cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
-check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
+check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
 
 .PHONY: check-gcc-ada check-ada
 check-gcc-ada:
diff --git a/Makefile.tpl b/Makefile.tpl
index abd2bc2fb897..b6077c9f125c 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1470,6 +1470,10 @@ ENDIF raw_cxx +]
 check-target-libgomp-c++:
 	$(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
 
+.PHONY: check-target-libgomp-fortran
+check-target-libgomp-fortran:
+	$(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
+
 @endif target-libgomp
 
 @if target-libitm
-- 
GitLab