summaryrefslogtreecommitdiff
path: root/gcc/tm.texi
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-26 22:27:31 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-26 22:27:31 +0000
commit255b8f3fa861798d484564d5586462b0c2a4a9d5 (patch)
treea0a5ab7d409b5f49313a069ba391408c5b9a49b2 /gcc/tm.texi
parent3420680b6153c12cfce451f1f36d848e3f9b2f19 (diff)
downloadgcc-255b8f3fa861798d484564d5586462b0c2a4a9d5.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tm.texi')
-rw-r--r--gcc/tm.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tm.texi b/gcc/tm.texi
index d3357c1a4ef..d648344268c 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