aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2002-12-24 18:44:00 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-12-24 18:44:00 +0000
commit8601608f054d6744ce6ed6815b1592f0f2280684 (patch)
tree7cdad046b41fedb412d7f53b90b2d0ed1c3dc3ac /gcc/profile.c
parent45aff44f044de397c378451b679c4716a7edc81d (diff)
downloadgcc-8601608f054d6744ce6ed6815b1592f0f2280684.zip
gcc-8601608f054d6744ce6ed6815b1592f0f2280684.tar.gz
gcc-8601608f054d6744ce6ed6815b1592f0f2280684.tar.bz2
configure.in (enable-coverage): Add SELF_COVERAGE.
* configure.in (enable-coverage): Add SELF_COVERAGE. * profile.c (end_branch_prob): Use SELF_COVERAGE. From-SVN: r60476
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 4e6aecd..2e70598 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -1428,18 +1428,11 @@ end_branch_prob ()
{
if (bbg_file)
{
-#if __GNUC__ && !CROSS_COMPILE && SUPPORTS_WEAK
- /* If __gcov_init has a value in the compiler, it means we
- are instrumenting ourselves. We should not remove the
- counts file, because we might be recompiling
- ourselves. The .da files are all removed during copying
- the stage1 files. */
- extern void __gcov_init (void *)
- __attribute__ ((weak));
-
- if (!__gcov_init)
- unlink (da_file_name);
-#else
+#if !SELF_COVERAGE
+ /* If the compiler is instrumented, we should not remove the
+ counts file, because we might be recompiling
+ ourselves. The .da files are all removed during copying
+ the stage1 files. */
unlink (da_file_name);
#endif
fclose (bbg_file);