Install gcov-dump.
authorMartin Liska <mliska@suse.cz>
Tue, 14 Mar 2017 14:25:09 +0000 (15:25 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 14 Mar 2017 14:25:09 +0000 (14:25 +0000)
2017-03-14  Martin Liska  <mliska@suse.cz>

* Makefile.in: Install gcov-dump.

From-SVN: r246125

gcc/ChangeLog
gcc/Makefile.in

index 056609c95ff973ca4854d92cb50944c082b44dae..d53d070f55be5b9f0cfa10085daf2e982ca1cde6 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-14  Martin Liska  <mliska@suse.cz>
+
+       * Makefile.in: Install gcov-dump.
+
 2017-03-14  Martin Liska  <mliska@suse.cz>
 
        * multiple_target.c (expand_target_clones): Bail out for
index 8648d681fece269c02ecce58516d3f160bfa5ff1..1ba0475c89367ff05e0b011384502240d001f27f 100644 (file)
@@ -806,6 +806,7 @@ GCC_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcc|sed '$(progra
 CPP_INSTALL_NAME := $(shell echo cpp|sed '$(program_transform_name)')
 GCOV_INSTALL_NAME := $(shell echo gcov|sed '$(program_transform_name)')
 GCOV_TOOL_INSTALL_NAME := $(shell echo gcov-tool|sed '$(program_transform_name)')
+GCOV_DUMP_INSTALL_NAME := $(shell echo gcov-dump|sed '$(program_transform_name)')
 
 # Setup the testing framework, if you have one
 EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
@@ -3519,6 +3520,15 @@ install-common: native lang.install-common installdirs
            gcov-tool$(exeext) $(DESTDIR)$(bindir)/$(GCOV_TOOL_INSTALL_NAME)$(exeext); \
          fi; \
        fi
+# Install gcov-dump if it was compiled.
+       -if test "$(enable_as_accelerator)" != "yes" ; then \
+         if [ -f gcov-dump$(exeext) ]; \
+         then \
+           rm -f $(DESTDIR)$(bindir)/$(GCOV_DUMP_INSTALL_NAME)$(exeext); \
+           $(INSTALL_PROGRAM) \
+           gcov-dump$(exeext) $(DESTDIR)$(bindir)/$(GCOV_DUMP_INSTALL_NAME)$(exeext); \
+         fi; \
+       fi
 
 # Install the driver program as $(target_noncanonical)-gcc,
 # $(target_noncanonical)-gcc-$(version), and also as gcc if native.