This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/44728] New: gcov chokes when "." is present in DIR argument to -o flag
- From: "ajshower at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2010 15:50:40 -0000
- Subject: [Bug gcov-profile/44728] New: gcov chokes when "." is present in DIR argument to -o flag
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When trying to specify a directory that contains a "." for gcov to look in for
output files, gcov does not act as expected.
Example:
/home/test$ gcc-4.3 main.c -fprofile-arcs -ftest-coverage
/home/test$ ./a.out
/home/test$ gcov-4.3 -o/home/test/ main
<expected output>
/home/test$ mkdir 1.1; cp main.c 1.1; cd 1.1
/home/test/1.1$ gcc-4.3 main.c -fprofile-arcs -ftest-coverage
/home/test/1.1$ ./a.out
/home/test/1.1$ gcov-4.3 -o/home/test/1.1/ main
/home/test/1.gcno:cannot open graph file
I'm guessing that gcov is mistaking the DIR argument for the FILE argument to
the -o flag.
gcov-4.3 --help
-o, --object-directory DIR|FILE Search for object files in DIR or called
FILE
--
Summary: gcov chokes when "." is present in DIR argument to -o
flag
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ajshower at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44728