PING^1

On 08/30/2017 11:45 AM, Martin Liška wrote:
> Hi.
> 
> This is follow up which I've just noticed. Main problem we have is that
> an instrumented compiler w/ -fprofile-generate (built in $OBJDIR/gcc 
> subfolder)
> will generate all *.gcda files in a same dir as *.o files. That's problematic
> because we then have *.gcda files spread in 'profile' subfolder (because 
> profile'
> compiler builds libgcc) and 'train' subfolder. Eventually in 'feedback' stage
> we don't load any *.gcda files :/
> 
> Well I really hope we need to set -fprofile-generate=$folder to a $folder. 
> There comes
> second problem: all *.gcda files are created as $folder/$aux_base_name.gcda 
> which makes
> it useless as we multiple same file names:
> 
> $ find . -name expr.c
> ./libcpp/expr.c
> ./gcc/expr.c
> 
> Thus I suggest patch #0001 that appends full path of current work dir. Patch 
> #0002 sets
> a folder for PGO bootstrap. So far so good with a small exception: 
> conftest.gcda files
> that trigger -Wcoverage-mismatch. Can we remove these before a stage? Do we 
> do a similar
> thing somewhere?
> 
> Thoughts?
> Thanks,
> Martin
> 

Reply via email to