aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-05-05 16:15:47 +0200
committerMartin Liska <mliska@suse.cz>2020-05-05 16:15:47 +0200
commit811b7636cb8c10f1a550a76242b5666c7ae36da2 (patch)
treeea0379a64bf214b68baee4d56fd693cfd01fb914 /gcc
parentc0532db47d092430f8e8f497b2dc53343527bb13 (diff)
downloadgcc-811b7636cb8c10f1a550a76242b5666c7ae36da2.zip
gcc-811b7636cb8c10f1a550a76242b5666c7ae36da2.tar.gz
gcc-811b7636cb8c10f1a550a76242b5666c7ae36da2.tar.bz2
Remove __gcov_flush.
PR gcov-profile/93623 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect reality. PR gcov-profile/93623 * Makefile.in: Remove __gcov_flush. * gcov.h (__gcov_flush): Remove. * libgcov-interface.c (__gcov_flush): Remove. (init_mx): Use renamed mutex. (__gcov_lock): Likewise. (__gcov_unlock): Likewise. (__gcov_fork): Likewise. (__gcov_flush): Remove.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-cfg.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5f18676..6186c07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2020-05-05 Martin Liska <mliska@suse.cz>
+ PR gcov-profile/93623
+ * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
+ reality.
+
+2020-05-05 Martin Liska <mliska@suse.cz>
+
* opt-functions.awk (opt_args_non_empty): New function.
* opt-read.awk: Use the function for various option arguments.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index e99fb9f..b21ef0e 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -8439,8 +8439,8 @@ stmt_can_terminate_bb_p (gimple *t)
&& (call_flags & ECF_NOTHROW)
&& !(call_flags & ECF_RETURNS_TWICE)
/* fork() doesn't really return twice, but the effect of
- wrapping it in __gcov_fork() which calls __gcov_flush()
- and clears the counters before forking has the same
+ wrapping it in __gcov_fork() which calls __gcov_dump() and
+ __gcov_reset() and clears the counters before forking has the same
effect as returning twice. Force a fake edge. */
&& !fndecl_built_in_p (fndecl, BUILT_IN_FORK))
return false;