https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106726
Bug ID: 106726 Summary: ICE: verify_gimple failed (dead statement in EH table) on __builtin_alloca_with_align() with -fsanitize=hwaddress -fstack-check=generic -fexceptions Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: aarch64-unknown-linux-gnu Created attachment 53497 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53497&action=edit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc -fsanitize=hwaddress -fstack-check=generic -fexceptions testcase.c testcase.c: In function 'foo': testcase.c:4:1: error: dead statement in EH table 4 | foo (void) | ^~~ # _4 = VDEF <.MEM_2> _5 = __builtin_alloca_with_align (64, 128); during GIMPLE pass: asan0 testcase.c:4:1: internal compiler error: verify_gimple failed 0x11c2f4a verify_gimple_in_cfg(function*, bool) /repo/gcc-trunk/gcc/tree-cfg.cc:5568 0x1066e47 execute_function_todo /repo/gcc-trunk/gcc/passes.cc:2091 0x10673eb execute_todo /repo/gcc-trunk/gcc/passes.cc:2145 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-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-2159-20220823134237-g72886fcc626-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/13.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r13-2159-20220823134237-g72886fcc626-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220823 (experimental) (GCC)