Bug 39669 - gcov --preserve-paths causes mangled filenames on windows
Summary: gcov --preserve-paths causes mangled filenames on windows
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: gcov-profile (show other bugs)
Version: 3.4.5
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 23:47 UTC by Kevin Zeits
Modified: 2016-07-31 10:03 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-10-18 08:31:44


Attachments
test case: zip file containing example project. (1.32 KB, application/octet-stream)
2009-04-06 23:50 UTC, Kevin Zeits
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Zeits 2009-04-06 23:47:38 UTC
using a MinGW build of gcov 'gcov (GCC) 3.4.5 (mingw-vista special r3)' --preserve paths cause mangled output filenames. Say there is a file called C:/foo/bar.gcda calling 'gcov C:/foo/bar.gcda -o foo --preserve-paths -b' from 'C:\' causes the file 'foo#bar.gcov' to be output in in 'c:\' instead of 'bar.gcov' being produced in 'c:\foo\'
Comment 1 Kevin Zeits 2009-04-06 23:50:14 UTC
Created attachment 17597 [details]
test case: zip file containing example project.

unzipping and runing 'make coverage_bad' shows the problem.
Comment 2 Andrew Pinski 2009-04-06 23:51:34 UTC
Can you try a newer GCC?  3.4.x has not been supported for a while.
Comment 3 Kai Tietz 2010-10-18 08:31:44 UTC
On trunk there was a patch for gcov and DOS paths (see at revision 165596).
Could you please verify if this problem was solved by it?

Thanks in advance,
Kai
Comment 4 Andrew Pinski 2016-07-31 10:03:56 UTC
No feedback so closing as fixed.