Since 20231222, the 32-bit g++.dg/abi/mangle-regparm1a.C test FAILs on both Solaris/x86 and Linux/x86: +FAIL: g++.dg/abi/mangle-regparm1a.C -std=gnu++14 (test for warnings, line 6) +FAIL: g++.dg/abi/mangle-regparm1a.C -std=gnu++17 (test for warnings, line 6) +FAIL: g++.dg/abi/mangle-regparm1a.C -std=gnu++20 (test for warnings, line 6) +FAIL: g++.dg/abi/mangle-regparm1a.C -std=gnu++98 (test for warnings, line 6) This is no doubt due to commit 2fa122cae50cd87c1262c4ec18a783ee9bbbdaaa Author: Jason Merrill <jason@redhat.com> Date: Thu Dec 21 16:16:37 2023 -0500 testsuite: suppress mangling compatibility aliases
Even just make check-g++ RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} dg.exp=mangle-regparm*' reproduces it on x86_64-linux.
The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:dd7aa986fd12fc24e9d2efb8a8b267acb2bf19ea commit r14-8632-gdd7aa986fd12fc24e9d2efb8a8b267acb2bf19ea Author: Jason Merrill <jason@redhat.com> Date: Tue Jan 30 11:36:53 2024 -0500 testsuite: mangle-reparm1a options [PR113451] When I added -fabi-compat-version=8 to avoid mangling aliases it also suppressed the -Wabi warning. PR c++/113451 gcc/testsuite/ChangeLog: * g++.dg/abi/mangle-regparm1a.C: Use -Wabi=0.
Fixed.