https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120674

--- Comment #1 from Levi Zim <rsworktech at outlook dot com> ---
A much shorter reproducer reduced by cvise:

    #pragma riscv intrinsic "vector"
    void GB_AxB_saxpy5_unrolled_rvv() { vfloat64m8_t vc; }

Reproduce by gcc -g -march=rv64gc -c test.i

test.i: In function ‘GB_AxB_saxpy5_unrolled_rvv’:
test.i:2:1: internal compiler error: in int_loc_descriptor, at
dwarf2out.cc:14520
    2 | void GB_AxB_saxpy5_unrolled_rvv() { vfloat64m8_t vc; }
      | ^~~~
0x28cd307 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, void**,
diagnostic_t)
        ???:0
0x28cd7ef internal_error(char const*, ...)
        ???:0
0x5bc4c7 fancy_abort(char const*, int, char const*)
        ???:0
0x656261 c_common_finalize_early_debug()
        ???:0
0x788953 symbol_table::finalize_compilation_unit()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

gcc -g -march=rv64gcv -c test.i and gcc -march=rv64gc -c test.i both works
while gcc -g -march=rv64gc -c test.i crashes

Reply via email to