On Mon, 27 Oct 2025, H.J. Lu wrote: > PR c/122427 > * c-decl.cc (diagnose_mismatched_decls): For FUNCTION_DECL, if > OLDDECL has TYPE_ATTRIBUTES and NEWDECL doesn't, try the type > with the OLDDECL attributes. > > gcc/testsuite/ > > PR c/122427 > * g++.target/i386/cf_check-1.C: New test. > * g++.target/i386/cf_check-2.C: Likewise. > * g++.target/i386/cf_check-3.C: Likewise. > * g++.target/i386/cf_check-4.C: Likewise. > * gcc.target/i386/cf_check-7.c: Likewise. > * gcc.target/i386/cf_check-8.c: Likewise. > * gcc.target/i386/cf_check-9.c: Likewise. > * gcc.target/i386/cf_check-10.c: Likewise. > * gcc.target/i386/cf_check-11.c: Likewise. > * gcc.target/i386/no-callee-saved-12.c: Remove dg-error. > * gcc.target/i386/preserve-none-17.c: Likewise.
OK. -- Joseph S. Myers [email protected]
