]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gprof: Update PR gprof/32764 test
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Mar 2025 05:55:06 +0000 (13:55 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Mar 2025 07:05:57 +0000 (15:05 +0800)
commitbdf94855597d876836a92ef18d2b6e9290e4e1c0
treee2573ff472e8435831cdc838f53c5eccc7741857
parent4295841be4392fcff33a1efee6d4345063021e6b
gprof: Update PR gprof/32764 test

1. Remove gmon.out first before generating it in the configure check.
2. Make tst-gmon-gprof.out depend on the gprof binary.
3. Check that gmon.out is non-empty.
4. Don't include <sys/cdefs.h> in tst-gmon.c.

PR gprof/32764
* configure.ac: Remove gmon.out first.
* configure: Regenerated.
* testsuite/Makefile.am (tst-gmon-gprof.out): Depend on
$(GPROF).
* testsuite/Makefile.in: Regenerated.
* testsuite/tst-gmon-gprof.sh: Check that gmon.out is non-empty.
* testsuite/tst-gmon.c: Don't include <sys/cdefs.h>.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gprof/configure
gprof/configure.ac
gprof/testsuite/Makefile.am
gprof/testsuite/Makefile.in
gprof/testsuite/tst-gmon-gprof.sh
gprof/testsuite/tst-gmon.c