mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
gprof: Compile tst-gmon.c with -O2 -fno-omit-frame-pointer
Compile tst-gmon.c with -O2 -fno-omit-frame-pointer to ensure proper call graph generation. PR gprof/32768 * configure.ac: Compile tst-gmon.c with -fno-omit-frame-pointer. * configure: Regenerated. * testsuite/Makefile.am (GPROF_FLAGS): Add -O2 -fno-omit-frame-pointer. (AM_CFLAGS): Removed. (COMPILE): Append $(GPROF_FLAGS). (LINK): Likewise. * testsuite/Makefile.in: Regenerated. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
2
gprof/configure
vendored
2
gprof/configure
vendored
@@ -13972,7 +13972,7 @@ if ${gprof_cv_sys_native+:} false; then :
|
||||
else
|
||||
gprof_cv_sys_native=no
|
||||
if test x"${host}" = x"${target}" \
|
||||
&& ${CC-cc} -O2 -pg -o tst-gmon $srcdir/testsuite/tst-gmon.c; then
|
||||
&& ${CC-cc} -O2 -fno-omit-frame-pointer -pg -o tst-gmon $srcdir/testsuite/tst-gmon.c; then
|
||||
rm -f gmon.out
|
||||
./tst-gmon
|
||||
if test -s gmon.out; then
|
||||
|
||||
Reference in New Issue
Block a user