[PATCH] gprof: Compile tst-gmon.c with -O2 -fno-omit-frame-pointer
Alan Modra
amodra@gmail.com
Sat Mar 8 10:20:07 GMT 2025
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.
--
Alan Modra
More information about the Binutils
mailing list