From 4c259acf5ee5be1bdee14b9e45fc7f60aa4d2a49 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 7 Nov 2001 07:00:29 +0000 Subject: [PATCH] gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to test for absolute pathnames. * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to test for absolute pathnames. From-SVN: r46819 --- gcc/ChangeLog | 5 +++++ gcc/gcov.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dab2e25d8d5..9a2cc7281c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-06 Danny Smith + + * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to + test for absolute pathnames. + 2001-11-06 Olivier Hainque * unwind-dw2.c (execute_cfa_program): Evaluate call frame diff --git a/gcc/gcov.c b/gcc/gcov.c index aad22a8cf0e..62aa96ea3dc 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -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') {