On Mon, 26 Oct 2026 at 08:48, Richard Biener <[email protected]> wrote:
>
> On Sun, Oct 25, 2026 at 8:27 AM Zhongteng Gui <[email protected]> 
> wrote:
> >
> > On 2026/10/22 16:29, Zhongteng Gui wrote:
> > > From 7b974976c2245e8c230569fa356d031965a42c41 Mon Sep 17 00:00:00 2001
> > > From: Zhongteng Gui <[email protected]>
> > > Date: Thu, 22 Oct 2026 00:58:17 +0800
> > > Subject: [PATCH 1/4] i386: Remove outdated message from GCC 4.6 (passing
> > >  aligned parameter) [PR128083]
> > >
> > > This removes "the ABI for passing parameters with %d-byte alignment has
> > > changed in GCC 4.6".  It has been 15 years since then.
> > >
> > > gcc/ChangeLog:
> > >
> > >       * config/i386/i386.cc (ix86_compat_function_arg_boundary):
> > >       Removed.  No longer used anywhere.
> > >       (ix86_function_arg_boundary): Don't warn for ABI change from GCC
> > >       4.6.
> > >
> > > gcc/testsuite/ChangeLog:
> > >
> > >       * gcc.target/i386/pr68657.c: Remove dg-message.
> > >
> > > Signed-off-by: Zhongteng Gui <[email protected]>
> > > ---
> > >  gcc/config/i386/i386.cc                 | 50 -------------------------
> > >  gcc/testsuite/gcc.target/i386/pr68657.c |  1 -
> > >  2 files changed, 51 deletions(-)
> > >
> > From 25997652f50c71430f222f6c28349e9722b5f6e6 Mon Sep 17 00:00:00 2001
> > From: Zhongteng Gui <[email protected]>
> > Date: Thu, 22 Oct 2026 00:58:17 +0800
> > Subject: [PATCH v2 1/4] i386: Remove outdated message from GCC 4.6 (passing
> >  aligned parameter) [PR128083]
> >
> > This removes "the ABI for passing parameters with %d-byte alignment has
> > changed in GCC 4.6".  It has been 15 years since then.
> >
> > Also removes now-unused functions ix86_compat_function_arg_boundary and
> > ix86_compat_aligned_value_p.
>
> As indicated in the PR we should never prune those, instead a 
> -Wpsabi=<version>
> option should handle the version to report ABI changes against and -Wpsabi
> might get a reasonable default version for that.

Yes, adding controls for the diagnostics is the right approach, not
ripping them out.

Reply via email to