openwrt/toolchain
Robert Marko bd9b964b24 toolchain: binutils: fix compilation with GCC15
GCC15 has switched the C language default from GNU17 to GNU23[1] and this
causes builds to fail with:
In file included from mips-opc.c:29:
mips-opc.c: In function 'decode_mips_operand':
mips-formats.h:86:7: error: expected identifier or '(' before 'static_assert'
   86 |       static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
      |       ^~~~~~~~~~~~~
mips-opc.c:214:15: note: in expansion of macro 'MAPPED_REG'
  214 |     case 'z': MAPPED_REG (0, 0, GP, reg_0_map);
      |               ^~~~~~~~~~

So, backport upstream fix for this[2] to fix compilation with GCC15.
Patch for 2.40 was manually refreshed as part of the S390 code does not
exist in 2.40 as it was added after it.

[1] https://gcc.gnu.org/gcc-15/porting_to.html#c23
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8ebe62f3f0d27806b1bf69f301f5e188b4acd2b4

Fixes: #18678
Link: https://github.com/openwrt/openwrt/pull/18681
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit d3216173ab)
Link: https://github.com/openwrt/openwrt/pull/19065
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-08 21:28:26 +02:00
..
binutils toolchain: binutils: fix compilation with GCC15 2025-06-08 21:28:26 +02:00
fortify-headers fortify-headers: add __extension__ mark to strings.h 2023-08-11 12:53:33 +02:00
gcc config: fix CONFIG_GDB appearing in main menuconfig menu 2024-04-18 11:52:56 +02:00
gdb toolchain/gdb: backport patch for macOS to fix invalid range 2024-04-30 12:36:19 +02:00
glibc toolchain: glibc: Update glibc 2.37 to recent HEAD 2024-02-10 12:53:42 +01:00
kernel-headers toolchain: kernel-headers: remove debugging env dump 2024-04-27 06:52:38 +00:00
musl toolchain: musl: add PKG_CPE_ID 2023-09-27 22:37:01 +02:00
nasm toolchain/nasm: fix PKG_CPE_ID 2024-07-06 18:31:14 +02:00
wrapper buildroot: allow specifying libc personality for external toolchains 2013-02-20 15:06:10 +00:00
build_version toolchain: add a version that can be bumped to force toolchain/target rebuild 2021-11-16 22:02:45 +01:00
Config.in treewide: strip useless default n Kconfig lines 2023-02-03 12:50:15 +01:00
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 2009-04-24 02:07:24 +00:00
Makefile toolchain: remove references to $(LIBC)/utils subtarget 2023-02-25 13:45:18 +01:00