diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2004-04-24 00:50:16 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-04-23 22:50:16 +0000 |
commit | d1c38823924506d389ca58d02926ace21bdf82fa (patch) | |
tree | 8f9b0102376621d66e7cba56d6bc27986f106252 /gcc/gcov-io.h | |
parent | adabbcf475e259e77ef3b3d94f2070327955ee0a (diff) | |
download | gcc-d1c38823924506d389ca58d02926ace21bdf82fa.tar.gz |
Makefile.in (LIBGCOV): Add _gcov_fork...
* Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
_gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
* builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
* builtins.c (expand_builtin_fork_or_exec): New.
(expand_builtin): Call it.
* builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
* c-common.c (PID_TYPE): New macro.
(c_common_nodes_and_builtins): Initialize pid_type_node.
* calls.c (special_function_p): Do not handle fork and exec.
(expand_call): Do not handle ECF_FORK_OR_EXEC.
* gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
__gcov_execv, __gcov_execvp, __gcov_execve): Declare.
* libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
__gcov_execv, __gcov_execvp, __gcov_execve): New.
* tree.h (enum tree_index): Add TI_PID_TYPE.
(pid_type_node): New macro.
(ECF_FORK_OR_EXEC): Removed.
From-SVN: r81118
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index e83c5163c90..8e0da0e572a 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -447,6 +447,16 @@ extern void __gcov_merge_single (gcov_type *, unsigned); /* The merge function to choose the most common difference between consecutive values. */ extern void __gcov_merge_delta (gcov_type *, unsigned); + +/* The wrappers around some library functions.. */ +extern pid_t __gcov_fork (void); +extern int __gcov_execl (const char *, const char *, ...); +extern int __gcov_execlp (const char *, const char *, ...); +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 /* IN_LIBGCOV */ #if IN_LIBGCOV >= 0 |