Commit 4c259acf by Danny Smith Committed by Richard Henderson

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
parent 90f4c415
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
......
......@@ -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')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment