https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
--- Comment #17 from Andreas Schwab <sch...@linux-m68k.org> --- libtool: link: gcc -shared -fPIC -DPIC .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-context.o .libs/libgcrypt_la-const-time.o .libs/libgcrypt_la-hwf-riscv.o -Wl,--whole-archive ../cipher/.libs/libcipher.a ../random/.libs/librandom.a ../mpi/.libs/libmpi.a ../compat/.libs/libcompat.a -Wl,--no-whole-archive -ljitterentropy -lgpg-error -O2 -fstack-protector-strong -Werror=return-type -flto=auto -g -Wl,--version-script=./libgcrypt.vers -flto=auto -Wl,-soname -Wl,libgcrypt.so.20 -o .libs/libgcrypt.so.20.5.1 during RTL pass: expand In function 'chacha20_rvv_blocks', inlined from '_gcry_chacha20_riscv_v_blocks' at ../cipher/chacha20-riscv-v.c:556:10, inlined from '_gcry_chacha20_riscv_v_blocks' at ../cipher/chacha20-riscv-v.c:553:1: ../cipher/chacha20-riscv-v.c:246:19: internal compiler error: Segmentation fault 246 | size_t vl = __riscv_vsetvl_e32m1(nblks) < 4 | ^ 0x26df613 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, void**, diagnostic_t) ???:0 0x26f7c95 internal_error(char const*, ...) ???:0 0x12c540a riscv_vector::function_expander::function_expander(riscv_vector::function_instance const&, tree_node*, tree_node*, rtx_def*) ???:0 0x12c8725 riscv_vector::expand_builtin(unsigned int, tree_node*, rtx_def*) ???:0 0x95eb2f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0x96d15f store_expr(tree_node*, rtx_def*, int, bool, bool) ???:0