[PATCH] gprof: Update PR gprof/32764 test

H.J. Lu hjl.tools@gmail.com
Fri Mar 7 06:04:47 GMT 2025


On Fri, Mar 7, 2025 at 9:10 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Fri, Mar 7, 2025 at 7:58 AM Alan Modra <amodra@gmail.com> wrote:
> >
> > On Fri, Mar 07, 2025 at 07:00:41AM +0800, H.J. Lu wrote:
> > > Copy a simple gprof test from glibc to test the basic gprof functionality.
> >
> > Good idea.  OK if you have tested this natively and for a cross target
> > with and without cross-compiler installed.
>
> Here is the v2 patch I am checking in:
>
> 1. Tested natively on Linux/x86-64 and Linux/i686.
> 2. Tested for the x86_64-solaris cross target without cross-compiler.
> 3. Tested for the aarch64-linux-gnu cross target with cross-compiler.
>
> --
> H.J.

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>.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gprof-Update-PR-gprof-32764-test.patch
Type: text/x-patch
Size: 3755 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250307/5506e67e/attachment-0001.bin>


More information about the Binutils mailing list