diff options
author | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-13 18:41:08 +0000 |
---|---|---|
committer | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-13 18:41:08 +0000 |
commit | 34a602f033288c158d967dcf06ed9950acb4c750 (patch) | |
tree | 8dcd4f8eaed6078903399208e1a322353099d0fc /gcc/gcov.c | |
parent | 4678223dd65df0299e491730ca039055cd55a010 (diff) | |
download | gcc-34a602f033288c158d967dcf06ed9950acb4c750.tar.gz |
PR gcov-profile/44728
* gcov.c (create_file_names): When stripping extension only look
at base name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192425 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c index cf26ce19a2c..09831c2c6d6 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; |