[Bug gcov-profile/47793] New: Relative path in fprofile-use turns into absolute path

martin.gccbugs at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 18 02:23:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47793

           Summary: Relative path in fprofile-use turns into absolute path
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: martin.gccbugs@gmail.com


I noticed that I was unable to specify a relative path when generating gcda
files:

# ${trunk_gcc} -Wall  -fprofile-generate=./fdoprof -fprofile-arcs in.c -o
trunk.out 
# ./trunk.out
profiling:/./fdoprof:Cannot create directory
profiling:/./fdoprof/in.gcda:Skip

I believe this was introduced in
http://gcc.gnu.org/viewcvs?view=revision&revision=165596

gcc version 4.6.0 20110211
Target: x86_64-unknown-linux-gnu



More information about the Gcc-bugs mailing list