https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112987
Bug ID: 112987 Summary: [14 Regression][aarch64] ICE in aarch64_do_track_speculation, at config/aarch64/aarch64-speculation.cc:214 since r14-5886-g426fddcbdad674 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mjires at suse dot cz CC: nszabolcs at gmail dot com Target Milestone: --- Target: aarch64 Compiling testcase gcc.target/aarch64/eh_return-2.c results in ICE since r14-5886-g426fddcbdad674. $ cat eh_return-2.c /* { dg-do compile } */ /* { dg-final { scan-assembler "add\tsp, sp, x5" } } */ /* { dg-final { scan-assembler "br\tx6" } } */ void foo (unsigned long off, void *handler) { __builtin_eh_return (off, handler); } $ aarch64-linux-gnu-gcc eh_return-2.c -mtrack-speculation during RTL pass: speculation eh_return-2.c: In function ‘foo’: eh_return-2.c:9:1: internal compiler error: in aarch64_do_track_speculation, at config/aarch64/aarch64-speculation.cc:214 9 | } | ^ 0x8f6f6f aarch64_do_track_speculation() /home/mjires/git/GCC/master/gcc/config/aarch64/aarch64-speculation.cc:214 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ aarch64-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=aarch64-linux-gnu-gcc COLLECT_LTO_WRAPPER=/home/mjires/built/master-aarch64-linux-gnu/libexec/gcc/aarch64-linux-gnu/14.0.0/lto-wrapper Target: aarch64-linux-gnu Configured with: /home/mjires/git/GCC/master/configure --target=aarch64-linux-gnu --disable-bootstrap --enable-languages=c,c++ --disable-multilib --prefix=/home/mjires/built/master-aarch64-linux-gnu/ Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231207 (experimental) (GCC)