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

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


On 08/16/2017 08:45 AM, Andreas Schwab wrote:
> On Aug 15 2017, Florian Weimer <fweimer@redhat.com> wrote:
> 
>> @@ -38,6 +38,12 @@ endif
>>  # The mcount code won't work without a frame pointer.
>>  CFLAGS-mcount.c := -fno-omit-frame-pointer
>>  
>> +CFLAGS-tst-gmon.c := -pg
> 
> This fails if CFLAGS contains -fomit-frame-pointer.

Is the problem that -pg and -fomit-frame-pointer is incompatible?

Do you compile with -fomit-frame-pointer because your GCC was built with
--enable-frame-pointer?

Thanks,
Florian



More information about the Libc-alpha mailing list