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

            Bug ID: 112481
           Summary: [14 Regression] RISCV: ICE: Segmentation fault when
                    compiling pr110817-3.c
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at rivosinc dot com
  Target Milestone: ---

Created attachment 56559
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56559&action=edit
-freport-bug output

> ./bin/riscv64-unknown-linux-gnu-gcc -march=rv64gc -mabi=lp64d -O1 
> ../gcc/gcc/testsuite/gcc.c-torture/execute/pr110817-3.c -freport-bug
during RTL pass: expand
../gcc/gcc/testsuite/gcc.c-torture/execute/pr110817-3.c: In function 'main':
../gcc/gcc/testsuite/gcc.c-torture/execute/pr110817-3.c:10:28: internal
compiler error: Segmentation fault
   10 |   volatile signed int t = x[0];
      |                           ~^~~
0x16626a3 crash_signal
        ../../../gcc/gcc/toplev.cc:316
0x120ff7f emit_move_insn(rtx_def*, rtx_def*)
        ../../../gcc/gcc/expr.cc:4249
0x1221488 expand_constructor
        ../../../gcc/gcc/expr.cc:8970
0x120c148 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:11245
0x120c959 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:10860
0x120f354 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
        ../../../gcc/gcc/expr.h:310
0x120f354 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
        ../../../gcc/gcc/expr.cc:8627
0x1203e9a expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../../gcc/gcc/expr.cc:10628
0x120c8dd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:10856
0x120a786 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:12011
0x120c959 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:10860
0x120f354 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
        ../../../gcc/gcc/expr.h:310
0x120f354 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
        ../../../gcc/gcc/expr.cc:8627
0x12031c6 do_store_flag
        ../../../gcc/gcc/expr.cc:13283
0x12042cf expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../../gcc/gcc/expr.cc:10292
0x120c8dd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:10856
0x120471a expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:9049
0x120471a expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier)
        ../../../gcc/gcc/expr.h:310
0x120471a expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../../gcc/gcc/expr.cc:9377
0x120c8dd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../../gcc/gcc/expr.cc:10856
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Currently bisecting:
good: 879cf9ff45d94065d89e24b71c6b27c7076ac518
bad: a5922427c29fad177251d89cc946d1c5bfc135eb

-freport-bug output attached

Reply via email to