From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Jens Remus Date: Wed, 9 Apr 2025 08:59:24 +0200 Subject: gdb-rhel-86801-binutils-z17-update-12of12.patch ;; Backkport "s390: Add support for z17 as CPU name" ;; (Jens Remus, RHEL-86801) So far IBM z17 was identified as arch15. Add the real name, as it has been announced. [1] [1]: IBM z17 announcement letter, AD25-0015, https://www.ibm.com/docs/en/announcements/z17-makes-more-possible gas/ * config/tc-s390.c (s390_parse_cpu): Add z17 as alternate CPU name for arch15. * doc/c-s390.texi: Likewise. * doc/as.texi: Likewise. opcodes/ * s390-mkopc.c (main): Add z17 as alternate CPU name for arch15. Signed-off-by: Jens Remus diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c --- a/opcodes/s390-mkopc.c +++ b/opcodes/s390-mkopc.c @@ -384,7 +384,8 @@ main (void) else if (strcmp (cpu_string, "z16") == 0 || strcmp (cpu_string, "arch14") == 0) min_cpu = S390_OPCODE_ARCH14; - else if (strcmp (cpu_string, "arch15") == 0) + else if (strcmp (cpu_string, "z17") == 0 + || strcmp (cpu_string, "arch15") == 0) min_cpu = S390_OPCODE_ARCH15; else { fprintf (stderr, "Couldn't parse cpu string %s\n", cpu_string);