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

2020-04-12 Thread JonY via Cygwin
On 4/12/20 11:39 AM, John Selbie wrote: > I would file a bug, but that link you provided takes me to a sign-up page > that says, "Account creation restricted. Please contact ... response > within 24 hours..." > > A quick cursory glace of GCC sources would suggest the issue is in >

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

2020-04-12 Thread John Selbie via Cygwin
I would file a bug, but that link you provided takes me to a sign-up page that says, "Account creation restricted. Please contact ... response within 24 hours..." A quick cursory glace of GCC sources would suggest the issue is in \gcc\coverage.c. This is a snippit of a function that builds the

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

2020-04-12 Thread JonY via Cygwin
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. signature.asc Description: OpenPGP digital signature -- Problem reports: https://cygwin.com/problems.html

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-dir together, the

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

2020-04-12 Thread JonY via Cygwin
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-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

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