gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to test for absolute pathnames.
authorDanny Smith <dannysmith@users.sourceforge.net>
Wed, 7 Nov 2001 07:00:29 +0000 (07:00 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 7 Nov 2001 07:00:29 +0000 (23:00 -0800)
        * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
        test for absolute pathnames.

From-SVN: r46819

gcc/ChangeLog
gcc/gcov.c

index dab2e25d8d5d4f64e7854d435f46df93328ae310..9a2cc7281c53e04ef34f0de06b6710362bd443f1 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
+       test for absolute pathnames.
+
 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
 
        * unwind-dw2.c (execute_cfa_program): Evaluate call frame
index aad22a8cf0eef5693730d0d1bb26b6783800aced..62aa96ea3dcd06bc1e8e94f5bc695f8bf955f221 100644 (file)
@@ -1051,12 +1051,7 @@ output_data ()
     {
       /* If this is a relative file name, and an object directory has been
         specified, then make it relative to the object directory name.  */
-      if (! (*s_ptr->name == '/' || *s_ptr->name == DIR_SEPARATOR
-            /* Check for disk name on MS-DOS-based systems.  */
-            || (DIR_SEPARATOR == '\\'
-                && s_ptr->name[1] == ':'
-                && (s_ptr->name[2] == DIR_SEPARATOR
-                    || s_ptr->name[2] == '/')))
+      if (! IS_ABSOLUTE_PATHNAME (s_ptr->name)
          && object_directory != 0
          && *object_directory != '\0')
        {