diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 2000-01-26 22:27:31 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2000-01-26 22:27:31 +0000 |
commit | e09d24ffb12aff104ba1f584c420445aac4c1873 (patch) | |
tree | a0a5ab7d409b5f49313a069ba391408c5b9a49b2 /gcc/tm.texi | |
parent | 628d74de0e60a79f0b0e745a790c573663315f9e (diff) | |
download | gcc-e09d24ffb12aff104ba1f584c420445aac4c1873.zip gcc-e09d24ffb12aff104ba1f584c420445aac4c1873.tar.gz gcc-e09d24ffb12aff104ba1f584c420445aac4c1873.tar.bz2 |
calls.c (special_function_p): New argument fork_or_exec.
gcc:
* calls.c (special_function_p): New argument fork_or_exec.
(expand_call): When profile_arc_flag is set and the function
is in the fork_or_exec group, call __bb_fork_func first.
* libgcc2.c, _bb module (__bb_fork_func): New function.
(__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
output file.
* config/svr4.h (TARGET_HAS_F_SETLKW): Define.
* tree.h (special_function_p): Update prototype.
gcc/cp:
* cp/optimize.c (calls_setjmp_r): Supply new argument
to special_function_p.
From-SVN: r31635
Diffstat (limited to 'gcc/tm.texi')
-rw-r--r-- | gcc/tm.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tm.texi b/gcc/tm.texi index d3357c1..d648344 100644 --- a/gcc/tm.texi +++ b/gcc/tm.texi @@ -7815,4 +7815,12 @@ specifies where the linker should look for libraries. You need only define this macro if the default of @samp{"LIBRARY_PATH"} is wrong. + +@findex TARGET_HAS_F_SETLKW +@item TARGET_HAS_F_SETLKW +Define this macro iff the target supports file locking with fcntl / F_SETLKW. +Note that this functionality is part of POSIX. +Defining @code{TARGET_HAS_F_SETLKW} will enable the test coverage code +to use file locking when exiting a program, which avoids race conditions +if the program has forked. @end table |