https://sourceware.org/bugzilla/show_bug.cgi?id=34237
--- Comment #6 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Rainer Orth <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c52a3e86835f40dc4048e038f3cec6b97dba69fb commit c52a3e86835f40dc4048e038f3cec6b97dba69fb Author: Rainer Orth <[email protected]> Date: Thu Jun 11 10:05:03 2026 +0200 gprof: Fix tests on Solaris [PR34237] The gprof tests FAIL on Solaris: tst-gmon-gprof.sh ../gprof tst-gmon --- expected +++ actual @@ -1,3 +1,4 @@ f1 2000 f2 1000 f3 1 +main 1 FAIL main is included in the call graph, probably because Solaris still uses the original BSD gmon.out format. This patch allows for that difference. To distinguish between targets with non-default handling, $target is passed to the test scripts. As detailed in the PR, the powerpc with function descriptors special case only applies to AIX, so that variant is guarded accordingly. Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu. 2026-06-08 Rainer Orth <[email protected]> gprof: PR gprof/34237 * testsuite/Makefile.am (tst-gmon-gprof.out): Pass $(target) to tst-gmon-gprof.sh. (tst-gmon-gprof-l.out): Likewise. (tst-gmon-gprof-l2.out): Likewise. * testsuite/Makefile.in: Regenerate. * testsuite/tst-gmon-gprof.sh (expected_dot): Remove. <*-*-solaris2*>: Allow main in execution counters. <powerpc-*-aix* | rs6000-*-aix*>: Handle function descriptor case here. * testsuite/tst-gmon-gprof-l.sh: Likewise. * testsuite/tst-gmon-gprof-l2.sh: Likewise. -- You are receiving this mail because: You are on the CC list for the bug.
