Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
win wrote: > On 4/12/20 10:59 AM, John Selbie via Cygwin wrote: > > Sure, but this bug is unique to cygwin. Why would that be there bug? > > > > Because Cygwin does not modify gcc to use Windows paths. > > -- > Problem reports: https://cygwin.com/problem

Re: g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
Sure, but this bug is unique to cygwin. Why would that be there bug? On Sun, Apr 12, 2020 at 2:57 AM JonY via Cygwin wrote: > On 4/12/20 7:27 AM, John Selbie via Cygwin wrote: > > TLDR: With gcc/g++ 9.2.0 and 9.30 on Cygwin, when you use > > -fprofile-generate and -fprofile-di

g++ with -fprofile-dir flag has a bug (backslash instead of forward-slash issue)

2020-04-12 Thread John Selbie via Cygwin
TLDR: With gcc/g++ 9.2.0 and 9.30 on Cygwin, when you use -fprofile-generate and -fprofile-dir together, the target path for the .gcda file is corrupted with a backslash instead of having a forward slash used. Here's a sample run where profile guided optimization is getting enabled for a simple li