https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110420
Bug ID: 110420 Summary: internal compiler error: in gimple_redirect_edge_and_branch, at tree-cfg.cc:6262 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jbg...@lug-owl.de Target Milestone: --- Created attachment 55400 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55400&action=edit Preprocessed input. Starting with g:21e2ef2dc, I see a new ICE building a PPC Linux kernel for the adder875_defconfig config (see eg. http://toolchain.lug-owl.de/laminar/jobs/linux-powerpc-adder875_defconfig/100): [mk all 2023-06-26 02:31:11] # CC arch/powerpc/kernel/ptrace/ptrace-view.o [mk all 2023-06-26 02:31:11] powerpc-linux-gcc -Wp,-MMD,arch/powerpc/kernel/ptrace/.ptrace-view.o.d -nostdinc -I./arch/powerpc/include -I./arch/powerpc/include/generated -I./include -I./arch/powerpc/include/uapi -I./arch/powerpc/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -I ./arch/powerpc -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -funsigned-char -std=gnu11 -mbig-endian -m32 -msoft-float -pipe -ffixed-r2 -mmultiple -mno-readonly-in-sdata -mcpu=860 -mno-prefixed -mno-pcrel -mno-altivec -mno-vsx -mno-mma -fno-asynchronous-unwind-tables -mno-string -mbig-endian -mstack-protector-guard=tls -mstack-protector-guard-reg=r2 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -mstack-protector-guard-offset=544 -Werror -DUTS_MACHINE='"ppc"' -DKBUILD_MODFILE='"arch/powerpc/kernel/ptrace/ptrace-view"' -DKBUILD_BASENAME='"ptrace_view"' -DKBUILD_MODNAME='"ptrace_view"' -D__KBUILD_MODNAME=kmod_ptrace_view -c -o arch/powerpc/kernel/ptrace/ptrace-view.o arch/powerpc/kernel/ptrace/ptrace-view.c [mk all 2023-06-26 02:31:13] during GIMPLE pass: pre [mk all 2023-06-26 02:31:13] arch/powerpc/kernel/ptrace/ptrace-view.c: In function 'gpr32_set_common': [mk all 2023-06-26 02:31:13] arch/powerpc/kernel/ptrace/ptrace-view.c:649:5: internal compiler error: in gimple_redirect_edge_and_branch, at tree-cfg.cc:6262 [mk all 2023-06-26 02:31:13] 649 | int gpr32_set_common(struct task_struct *target, [mk all 2023-06-26 02:31:13] | ^~~~~~~~~~~~~~~~ [mk all 2023-06-26 02:31:13] 0x1a562a6 internal_error(char const*, ...) [mk all 2023-06-26 02:31:13] ???:0 [mk all 2023-06-26 02:31:13] 0x826ea1 fancy_abort(char const*, int, char const*) [mk all 2023-06-26 02:31:13] ???:0 [mk all 2023-06-26 02:31:13] 0x9b77c9 redirect_edge_and_branch(edge_def*, basic_block_def*) [mk all 2023-06-26 02:31:13] ???:0 [mk all 2023-06-26 02:31:13] 0x9b7e43 split_edge(edge_def*) [mk all 2023-06-26 02:31:13] ???:0 [mk all 2023-06-26 02:31:13] 0xee1cc7 split_critical_edges(bool) [mk all 2023-06-26 02:31:13] ???:0 [mk all 2023-06-26 02:31:13] Please submit a full bug report, with preprocessed source (by using -freport-bug). [mk all 2023-06-26 02:31:13] Please include the complete backtrace with any bug report. [mk all 2023-06-26 02:31:13] See <https://gcc.gnu.org/bugs/> for instructions. [mk all 2023-06-26 02:31:13] make[4]: *** [scripts/Makefile.build:252: arch/powerpc/kernel/ptrace/ptrace-view.o] Error 1 [mk all 2023-06-26 02:31:13] make[3]: *** [scripts/Makefile.build:494: arch/powerpc/kernel/ptrace] Error 2 [mk all 2023-06-26 02:31:13] make[2]: *** [scripts/Makefile.build:494: arch/powerpc/kernel] Error 2 [mk all 2023-06-26 02:31:13] make[1]: *** [scripts/Makefile.build:494: arch/powerpc] Error 2 [mk all 2023-06-26 02:31:13] make: *** [Makefile:2026: .] Error 2 The full command line is seen above, I'll also attach preprocessed input. (-freport-bug didn't generate something?)