Path issue with cygwin and g++ -fprofile-generate and -fprofile-use command

vivien.clauzon@yahoo.fr vivien.clauzon@yahoo.fr
Thu Apr 2 13:19:03 GMT 2020


Hi cygwin users,
today I saw an issue when trying to use profile guided optimization of g++ (9.3.0) inside cygwin 3.1.4 with path specified

uname -a gives
CYGWIN_NT-10.0 3.1.4(0.340/5 /3) 2020-02-19 x86_64 Cygwin
More specificaly if I try to give a path argument like 

 -fprofile-generate=profile
-fprofile-use=profile

g++ outputs 

profiling:profile#path#to#here\test.gcda:Skip

Sample to reproduce :
test.cc :int main(int , char**) { return 0; }
> g++ -profile-generate=profile test.cc> ./a.exe> g++ -profile-use=profile test.cc
will output :
 profiling:profile#path#to#here\test.gcda:Skip

and during second compilation g++ will complain about missing profile as i hasn't been crated.

This is also the case if an absolute path is given, and also if the target directory already exists.
Without specifiyng a path argument, profile generation and use are fine.
Am i doing something wrong ?


More information about the Cygwin mailing list