This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/44728] New: gcov chokes when "." is present in DIR argument to -o flag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]