diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2001-11-07 07:00:29 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-11-06 23:00:29 -0800 |
commit | 4c259acf5ee5be1bdee14b9e45fc7f60aa4d2a49 (patch) | |
tree | 42c2efb1973ccae95435aa1b299ee9a9dbb0a235 /gcc/gcov.c | |
parent | 90f4c415efc65ccd45f21f4a13f276e7f0332398 (diff) | |
download | gcc-4c259acf5ee5be1bdee14b9e45fc7f60aa4d2a49.zip gcc-4c259acf5ee5be1bdee14b9e45fc7f60aa4d2a49.tar.gz gcc-4c259acf5ee5be1bdee14b9e45fc7f60aa4d2a49.tar.bz2 |
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
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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') { |