openwrt-mirror/toolchain
Robert Marko 069f988d9d 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)
2025-05-03 22:47:07 +02:00
..
binutils toolchain: binutils: fix compilation with GCC15 2025-05-03 22:47:07 +02:00
fortify-headers toolchain/fortify-headers: update download url 2024-09-14 13:55:15 +02:00
gcc toolchain: gcc: drop 110-Fix-MIPS-PR-84790.patch 2024-09-17 21:43:32 +08:00
gdb toolchain: gdb: set -std=gnu17 2025-04-25 10:55:04 +02:00
glibc toolchain: glibc: Update glibc 2.38 to recent HEAD 2024-05-04 20:03:47 +02:00
kernel-headers toolchain: assign PKG_CPE_ID 2023-09-19 20:22:59 +02:00
mold toolchain: mold: add PKG_NAME to Makefile 2025-04-23 12:22:58 +02:00
musl toolchain/musl: add support for renameat2() 2024-06-13 14:16:32 +02:00
nasm toolchain/nasm: update to 2.16.03 2024-09-22 19:06:22 +02:00
wrapper toolchain/wrapper: fill and reference info.mk in staging_dir ext toolchain 2024-04-21 17:59:17 +02: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 build: conditionally build llvm bpf toolchain by default 2025-02-07 11:19:10 +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: add mold as additional linker 2023-07-04 20:25:41 +02:00