]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR gcov-profile/44728 (gcov chokes when "." is present in DIR argument to -o flag)
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 13 Oct 2012 18:41:08 +0000 (18:41 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 13 Oct 2012 18:41:08 +0000 (18:41 +0000)
PR gcov-profile/44728
* gcov.c (create_file_names): When stripping extension only look
at base name.

From-SVN: r192425

gcc/ChangeLog
gcc/gcov.c

index 000b0d2cfea183c3a807d8783eb12532cea65748..f961a99aa5ae53537c42b2a3c602df6efe583fdc 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-13  Andreas Schwab  <schwab@linux-m68k.org>
+
+       PR gcov-profile/44728
+       * gcov.c (create_file_names): When stripping extension only look
+       at base name.
+
 2012-10-13  Jan Hubicka  <jh@suse.cz>
 
        * loop-iv.c (determine_max_iter): Fix handling of AND.
index cf26ce19a2c71ac99f53aefa5d3a5c0f03a6946a..09831c2c6d6e49f669e734fafeace29af4b59233 100644 (file)
@@ -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;