[PATCH] gprof: Compile tst-gmon.c with -O2 -fno-omit-frame-pointer
H.J. Lu
hjl.tools@gmail.com
Sat Mar 8 10:25:30 GMT 2025
On Sat, Mar 8, 2025 at 6:20 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Sat, Mar 08, 2025 at 05:46:56PM +0800, H.J. Lu wrote:
> > +# NB: -O2 -fno-omit-frame-pointer is needed for expected call graph. See
> > +# https://sourceware.org/bugzilla/show_bug.cgi?id=32768
> > +GPROF_FLAGS = -O2 -fno-omit-frame-pointer -pg
>
> Thanks. Fair enough. x86_64 at least complains if you have -pg and
> -fomit-frame-pointer together, and -O2 on x86_64 puts functions on
> 16-byte boundaries.
>
This test works in glibc for many targets compiled with
-O2 -fno-omit-frame-pointer -pg. I am checking it in.
Thanks.
--
H.J.
More information about the Binutils
mailing list