Commit 15882fe9 by Tristan Gingold Committed by Eric Botcazou

gcov.c (create_file_names): If no object directory is specified, keep the directory of the file.

	* gcov.c (create_file_names): If no object directory is specified,
	keep the directory of the file.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r174062
parent da90c957
2011-05-23 Tristan Gingold <gingold@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>
* gcov.c (create_file_names): If no object directory is specified,
keep the directory of the file.
2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list. * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
......
...@@ -652,13 +652,12 @@ release_structures (void) ...@@ -652,13 +652,12 @@ release_structures (void)
} }
} }
/* Generate the names of the graph and data files. If OBJECT_DIRECTORY /* Generate the names of the graph and data files. If OBJECT_DIRECTORY
is not specified, these are looked for in the current directory, is not specified, these are named from FILE_NAME sans extension. If
and named from the basename of the FILE_NAME sans extension. If OBJECT_DIRECTORY is specified and is a directory, the files are in that
OBJECT_DIRECTORY is specified and is a directory, the files are in directory, but named from the basename of the FILE_NAME, sans extension.
that directory, but named from the basename of the FILE_NAME, sans Otherwise OBJECT_DIRECTORY is taken to be the name of the object *file*
extension. Otherwise OBJECT_DIRECTORY is taken to be the name of and the data files are named from that. */
the object *file*, and the data files are named from that. */
static void static void
create_file_names (const char *file_name) create_file_names (const char *file_name)
...@@ -691,8 +690,8 @@ create_file_names (const char *file_name) ...@@ -691,8 +690,8 @@ create_file_names (const char *file_name)
else else
{ {
name = XNEWVEC (char, length + 1); name = XNEWVEC (char, length + 1);
name[0] = 0; strcpy (name, file_name);
base = 1; base = 0;
} }
if (base) if (base)
......
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