https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120674
Bug ID: 120674 Summary: [riscv][dwarf] internal compiler error: in int_loc_descriptor, at dwarf2out.cc:14520 Product: gcc Version: 15.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rsworktech at outlook dot com Target Milestone: --- Host: riscv64-linux-gnu Target: riscv64-linux-gnu Build: riscv64-linux-gnu Created attachment 61648 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61648&action=edit Reproducer Reproducer: /usr/bin/gcc -DHAVE_CONFIG_H -I. $'-march=rv64gc' $'-mabi=lp64d' -O2 -g $'-ffile-prefix-map=/build/libpng/src=/usr/src/debug/libpng' -c riscv/filter_rvv_intrinsics.c -o riscv/.libs/libpng16rvv_la-filter_rvv_intrinsics.o Output: riscv/filter_rvv_intrinsics.c: In function ‘__riscv_vse8_v_u8m8’: riscv/filter_rvv_intrinsics.c:365:1: internal compiler error: in int_loc_descriptor, at dwarf2out.cc:14520 365 | } | ^ 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). Please include the complete backtrace with any bug report. See <https://github.com/felixonmars/archriscv-packages/issues> for instructions. Other Information: The following command works: /usr/bin/gcc -DHAVE_CONFIG_H -I. $'-march=rv64gc' $'-mabi=lp64d' -O2 -c riscv/filter_rvv_intrinsics.c -o riscv/.libs/libpng16rvv_la-filter_rvv_intrinsics.o It outputs the following error message as expected: riscv/filter_rvv_intrinsics.c: In function ‘png_read_filter_row_up_rvv’: riscv/filter_rvv_intrinsics.c:29:12: error: built-in function ‘__riscv_vsetvl_e8m8(len)’ requires the ‘v’ ISA extension 29 | vl = __riscv_vsetvl_e8m8(len); | ^~~~~~~~~~~~~~~~~~~~~~~~ riscv/filter_rvv_intrinsics.c:31:30: error: this operation requires the RVV ISA extension 31 | vuint8m8_t prev_vals = __riscv_vle8_v_u8m8(prev_row, vl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ riscv/filter_rvv_intrinsics.c:31:30: note: you can enable RVV using the command-line option ‘-march’, or by using the ‘target’ attribute or pragma riscv/filter_rvv_intrinsics.c:31:30: error: built-in function ‘__riscv_vle8_v_u8m8(prev_row, vl)’ requires the ‘v’ ISA extension riscv/filter_rvv_intrinsics.c:32:29: error: built-in function ‘__riscv_vle8_v_u8m8(row, vl)’ requires the ‘v’ ISA extension 32 | vuint8m8_t row_vals = __riscv_vle8_v_u8m8(row, vl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ riscv/filter_rvv_intrinsics.c:34:18: error: built-in function ‘__riscv_vadd_vv_u8m8(row_vals, prev_vals, vl)’ requires the ‘v’ ISA extension 34 | row_vals = __riscv_vadd_vv_u8m8(row_vals, prev_vals, vl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ riscv/filter_rvv_intrinsics.c:36:7: error: built-in function ‘__riscv_vse8_v_u8m8(row, row_vals, vl)’ requires the ‘v’ ISA extension 36 | __riscv_vse8_v_u8m8(row, row_vals, vl); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~