[PATCH] Test for profiling support (_mcount/gprof)

Florian Weimer fweimer@redhat.com
Wed Aug 16 15:07:00 GMT 2017


On 08/16/2017 05:05 PM, Andreas Schwab wrote:
> On Aug 16 2017, Florian Weimer <fweimer@redhat.com> wrote:
> 
>> tst-gmon: Build with -fno-omit-frame-pointer
>>
>> If glibc is built with -fomit-frame-pointer to undo the effect of
>> configuring GCC with --enable-frame-pointer, using -pg by itself results
>> in a build failure:
> 
> This works, but what does this have to do with --enable-frame-pointer?

If you don't use --enable-frame-pointer for GCC, there's no apparent
reason to me to build glibc with --fomit-frame-pointer because it's the
default (albeit in a fashion that is compatible with -pg).

Thanks,
Florian



More information about the Libc-alpha mailing list