From: Stefan Schulze Frielinghaus Date: Fri, 12 Dec 2025 19:44:45 +0000 (+0100) Subject: s390: Warn about non-overloaded deprecated builtins X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6d6fdab5b5f7ebdb5270e09fcc1a1e5ec0be16;p=thirdparty%2Fgcc.git s390: Warn about non-overloaded deprecated builtins Previously a warning for a deprecated builtin was only emitted for overloaded builtins. Warn about non-overloaded deprecated builtins, too. gcc/ChangeLog: * config/s390/s390.cc (s390_expand_builtin): Warn about non-overloaded deprecated builtins. --- diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 359ea1c3d64..d2a7fa29978 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -917,6 +917,9 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, error ("Builtin %qF requires z17 or higher", fndecl); return const0_rtx; } + + if (bflags & B_DEP) + warning (0, "builtin %qF is deprecated", fndecl); } if (fcode >= S390_OVERLOADED_BUILTIN_VAR_OFFSET && fcode < S390_ALL_BUILTIN_MAX)