]> git.ipfire.org Git - thirdparty/openwrt.git/commit
toolchain: gcc: backport patch to fix ICE with PowerPC targets 18797/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 13 May 2025 19:58:56 +0000 (21:58 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 14 May 2025 09:23:34 +0000 (11:23 +0200)
commit18de64d87bee66e58fa7c25ddcc4faf1bee4a354
tree7f6da625c8fd9dece79e14f81f492e87e67fcb25
parent7f1b9a42093ff0103b622d1a9e5c1d2ce208ce92
toolchain: gcc: backport patch to fix ICE with PowerPC targets

During the build of perl, the following ICE was reported in
https://github.com/openwrt/packages/issues/24565 when targeting PowerPC:

    during RTL pass: reload
    blocksort.c: In function 'mainSort.isra':
    blocksort.c:1011:1: internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303
     1011 | }
          | ^
    0x7d49cee29d8f __libc_start_call_main
            ../sysdeps/nptl/libc_start_call_main.h:58
    0x7d49cee29e3f __libc_start_main_impl
            ../csu/libc-start.c:392
    Please submit a full bug report, with preprocessed source (by using -freport-bug).
    Please include the complete backtrace with any bug report.
    See <http://bugs.openwrt.org/> for instructions.

The same issue also caused the CI failures in
https://github.com/openwrt/packages/pull/26501.

The issue only occurs with GCC 14.2.0, but not with the head of the
releases/gcc-14 maintenance branch; a bisect found that this patch fixes
it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Link: https://github.com/openwrt/openwrt/pull/18797
Signed-off-by: Robert Marko <robimarko@gmail.com>
toolchain/gcc/patches-14.x/021-Reuse-scratch-registers-generated-by-LRA.patch [new file with mode: 0644]