aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-10-13 18:41:08 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2012-10-13 18:41:08 +0000
commit258ef00780344ea3565b3276a60343529e94acc3 (patch)
tree8dcd4f8eaed6078903399208e1a322353099d0fc /gcc/gcov.c
parent43ffba00cb5ebe8498daa5431f08d329fc62080b (diff)
downloadgcc-258ef00780344ea3565b3276a60343529e94acc3.zip
gcc-258ef00780344ea3565b3276a60343529e94acc3.tar.gz
gcc-258ef00780344ea3565b3276a60343529e94acc3.tar.bz2
re PR gcov-profile/44728 (gcov chokes when "." is present in DIR argument to -o flag)
PR gcov-profile/44728 * gcov.c (create_file_names): When stripping extension only look at base name. From-SVN: r192425
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index cf26ce1..09831c2 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -842,7 +842,7 @@ create_file_names (const char *file_name)
}
/* Remove the extension. */
- cptr = strrchr (name, '.');
+ cptr = strrchr (CONST_CAST (char *, lbasename (name)), '.');
if (cptr)
*cptr = 0;