aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-03-08 17:13:17 +0800
committerH.J. Lu <hjl.tools@gmail.com>2025-03-08 18:38:01 +0800
commit1563d43f32090495d50f0c262d6e1bcc17807064 (patch)
tree78525b6eba0b2434cbca54dc262202c3e1525d19 /gprof/configure
parent4f0636220e6a60d85809fb4a982150f8bc3f218e (diff)
downloadbinutils-1563d43f32090495d50f0c262d6e1bcc17807064.zip
binutils-1563d43f32090495d50f0c262d6e1bcc17807064.tar.gz
binutils-1563d43f32090495d50f0c262d6e1bcc17807064.tar.bz2
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>
Diffstat (limited to 'gprof/configure')
-rwxr-xr-xgprof/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/configure b/gprof/configure
index b830da0..2acae7b 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -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