[PATCH] i686: Compile gmon tests with -mfentry
H.J. Lu
hjl.tools@gmail.com
Fri Sep 5 16:03:24 GMT 2025
On Fri, Sep 5, 2025 at 8:41 AM Joseph Myers <josmyers@redhat.com> wrote:
>
> On Thu, 4 Sep 2025, H.J. Lu wrote:
>
> > On i686, after GCC 16 commit:
> >
> > Author: H.J. Lu <hjl.tools@gmail.com>
> > Date: Wed Jul 2 08:58:23 2025 +0800
> >
> > x86-64: Add --enable-x86-64-mfentry
> >
> > which warns ‘-pg’ without ‘-mfentry’, when glibc is configured with
> > --disable-default-pie, GCC 16 fails to compile gmon tests with error:
> >
> > cc1: error: ‘-pg’ without ‘-mfentry’ may be unreliable with shrink wrapping [-Werror]
> >
> > Compile tst-gmon.c, tst-mcleanup.c and tst-mcount-overflow.c with
> > -mfentry if it is supported by TEST_CC and glibc is configured with
> > --disable-default-pie. This fixes BZ #33376.
>
> Note that build-many-glibcs.py uses --enable-profile. This might not fix
> the --enable-profile --disable-default-pie issue given that
> --enable-profile means copies of everything get built with -pg, not just a
> few files.
>
It should be fixed with the v2 patch.
--
H.J.
More information about the Libc-alpha
mailing list