Hi Revital > Is there an option to change the name of the .gcno file that is > generated by using profiling flags like -fprofile-generate and later > used by -fprofile-use? I read that "For each source file compiled > with `-fprofile-arcs', an accompanying `.gcda' file will be placed > in the object file directory. " - Can I change it such that the > .gcda will be named as I wish?
The GCC documentation says this about the subject: Each object file's @var{auxname} is generated from the name of the output file, if explicitly specified and it is not the final executable, otherwise it is the basename of the source file. In both cases any suffix is removed (e.g.@: @file{foo.gcda} for input file @file{dir/foo.c}, or @file{dir/foo.gcda} for output file specified as @option{-o dir/foo.o}). I checked the source code and it seems the documentation is correct. So, no. :-) Cheers, Ben