From 34a602f033288c158d967dcf06ed9950acb4c750 Mon Sep 17 00:00:00 2001 From: schwab Date: Sat, 13 Oct 2012 18:41:08 +0000 Subject: 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 --- gcc/gcov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gcov.c') 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; -- cgit v1.2.1