From 0f11bb5def161efb5a494a96db64d3c9902eeab6 Mon Sep 17 00:00:00 2001
From: nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 24 Mar 1998 17:27:46 +0000
Subject: [PATCH] Support a .exe extension to gcov.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18806 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog   | 2 ++
 gcc/Makefile.in | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4cd64e7bcd87..8b72e52a57c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
 Tue Mar 24 10:44:11 1998  Nick Clifton  <nickc@cygnus.com>
 
+	* Makefile.in (gcov$(exeext)): Support .exe extension to gcov.
+
 	* collect2.c (find_a_file): Add debugging.
 	(find_a_file): Test for win32 style absolute paths if
 	DIR_SERPARATOR is defined.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index ab0a84e6e2ee..02126d9d2e6d 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -39,7 +39,7 @@ SUBDIRS =@subdirs@
 
 # Selection of languages to be made.
 # This is overridden by configure.
-LANGUAGES = c proto gcov @all_languages@
+LANGUAGES = c proto gcov$(exeext) @all_languages@
 
 # Selection of languages to be made during stage1 build.
 # This is overridden by configure.
@@ -1868,7 +1868,9 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
 
 gcov.o: gcov.c gcov-io.h
 
-gcov: gcov.o $(LIBDEPS)
+# Only one of 'gcov' or 'gcov.exe' is actually built, depending
+# upon whether $(exeext) is empty or not.
+gcov$(exeext): gcov.o $(LIBDEPS)
 	$(CC) $(ALL_CFLAGS) $(LDFLAGS) gcov.o $(LIBS) -o $@
 #
 # Build the include directory.  The stamp files are stmp-* rather than
-- 
GitLab