https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102290
Bug ID: 102290 Summary: ICE with -gsplit-dwarf Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: kilobyte at angband dot pl Target Milestone: --- void foo() { int c = 0; do ; while (bar(&c, c)); } riscv64-linux-gnu-gcc-11 -O2 -gsplit-dwarf -gdwarf-5 -c foo.i foo.i:5:1: internal compiler error: Segmentation fault 5 | } | ^ 0x7eff8a765eef ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x7eff8a750e49 __libc_start_main ../csu/libc-start.c:314 (The original file was arch/riscv/kernel/cpu.c in linux-5.15-rc0) Debian unstable, gcc-11 11.2.0-5, amd64 host, riscv64 target.