This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AutoFDO profile toolchain is open-sourced


> > It converts with the attached patches, but there's still some problem
> > parsing the data:
> >
> > % ./create_gcov  -binary loop -gcov_version 1 -gcov loop.gcda -gcov_version 0x500e
> > % gcc50 -O2 -fprofile-use loop.c
> > loop.c:1:0: warning: '/home/andi/src/autofdo/loop.gcda' is version ',
> > expected version '500e'
> > %
> 
> You need to use -fauto-profile=loop.gcda instead of "-fprofile-use",
> which is only for instrumentation based FDO.

This is indeed not very intuitive. I wonder why it uses the same suffix suggesting
that sample based and FDO based files are the same?
Would it be possible to at least have this well documented in invoke.texi and perhaps
we can fix the warning above to say something like "loop.gcda is autofdo profile, use
-fauto-profile instead of -fprofile-use"?

Honza
> 
> Dehao
> 
> >
> > -Andi
> >


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]