From 060c5f005e19938ff900cc653af1a46947b91d1d Mon Sep 17 00:00:00 2001
From: Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Date: Sun, 25 Apr 2004 18:38:07 +0200
Subject: [PATCH] gcov-io.h (__gcov_fork, [...]): Do not declare when
 inhibit_libc is defined.

	* gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
	__gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
	inhibit_libc is defined.

From-SVN: r81164
---
 gcc/ChangeLog | 6 ++++++
 gcc/gcov-io.h | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b5f9080a05f7..10de4bdcd7d3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+	* gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
+	__gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
+	inhibit_libc is defined.
+
 2004-04-25  Richard Sandiford  <rsandifo@redhat.com>
 
 	* config/mips/mips-protos.h (mips_linked_macc_p): Declare.
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h
index 8e0da0e572a3..75abbea479ba 100644
--- a/gcc/gcov-io.h
+++ b/gcc/gcov-io.h
@@ -448,6 +448,7 @@ extern void __gcov_merge_single (gcov_type *, unsigned);
    consecutive values.  */
 extern void __gcov_merge_delta (gcov_type *, unsigned);
 
+#ifndef inhibit_libc
 /* The wrappers around some library functions..  */
 extern pid_t __gcov_fork (void);
 extern int __gcov_execl (const char *, const char *, ...);
@@ -456,6 +457,7 @@ extern int __gcov_execle (const char *,  const char *, ...);
 extern int __gcov_execv (const char *, char *const []);
 extern int __gcov_execvp (const char *, char *const []);
 extern int __gcov_execve (const char *, char  *const [], char *const []);
+#endif
 
 #endif /* IN_LIBGCOV */
 
-- 
GitLab