On Mon, Jun 15, 2026 at 1:20 PM Rainer Orth <[email protected]> wrote: > > Profiling on 32-bit Solaris/x86 has been broken since > > Save call-clobbered registers in _mcount on 32-bit Solaris/x86 (PR > target/38239) > https://gcc.gnu.org/pipermail/gcc-patches/2016-March/444175.html > > This was only recently noticed when setting up a Solaris/i386 binutils > buildbot. > > Since internal_mcount is a regular function on Solaris, the selfpc and > frompcindex args need to pushed to the stack. Besides, the patch fixes > a couple of warnings in gmon.c > > Bootstrapped withoug regressions on i386-pc-solaris2.11. With this > patch, the binutils gprof tests PASS. > > Ok for trunk? > > Rainer > > -- > ----------------------------------------------------------------------------- > Rainer Orth, Center for Biotechnology, Bielefeld University > > > 2026-06-12 Rainer Orth <[email protected]> > > libgcc: > PR target/38239 > * config/sol2/gmon.c [__i386__] (_mcount): Pass selfpc, frompc to > internal_mcount. > (internal_mcount): Remove already_setup. > Remove obsolete comment. > (moncontrol): Disable profil(2) deprecation warning.
This probably falls under your Solaris maintanership, but LGTM anyway. Thanks, Uros.
