aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcov.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/libgcov.c')
-rw-r--r--gcc/libgcov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/libgcov.c b/gcc/libgcov.c
index 3939dfe..6f32e85 100644
--- a/gcc/libgcov.c
+++ b/gcc/libgcov.c
@@ -283,7 +283,7 @@ gcov_exit (void)
}
}
/* Update complete filename with stripped original. */
- if (!IS_DIR_SEPARATOR (*fname))
+ if (!IS_DIR_SEPARATOR (*fname) && !HAS_DRIVE_SPEC(fname))
{
strcpy (gi_filename_up, "/");
strcpy (gi_filename_up + 1, fname);