[Bug target/99727] New: [11 Regression] MVE: ICE (segfault) in arm_print_operand at -O3

acoplan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 23 12:45:04 GMT 2021


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

            Bug ID: 99727
           Summary: [11 Regression] MVE: ICE (segfault) in
                    arm_print_operand at -O3
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat test.c
char a[7][25][15][14];
void b() {
  for (int c;; ++c)
    for (int d = 0; d < 25; ++d)
      for (int e = 0; e < 15; ++e)
        for (int f = 0; f < 14; ++f)
          a[c][d][e][f] = 1;
}
$ arm-eabi-gcc -c test.c -march=armv8.1-m.main+mve -mfloat-abi=hard -O3
during RTL pass: final
test.c: In function 'b':
test.c:8:1: internal compiler error: Segmentation fault
    8 | }
      | ^
0xd41821 crash_signal
        /home/alecop01/toolchain/src/gcc/gcc/toplev.c:327
0x118eba5 arm_print_operand
        /home/alecop01/toolchain/src/gcc/gcc/config/arm/arm.c:24201
0x960465 output_operand(rtx_def*, int)
        /home/alecop01/toolchain/src/gcc/gcc/final.c:4069
0x960f44 output_asm_insn(char const*, rtx_def**)
        /home/alecop01/toolchain/src/gcc/gcc/final.c:3962
0x9639f5 final_scan_insn_1
        /home/alecop01/toolchain/src/gcc/gcc/final.c:3125
0x963c8d final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /home/alecop01/toolchain/src/gcc/gcc/final.c:3171
0x96489a final_1
        /home/alecop01/toolchain/src/gcc/gcc/final.c:2022
0x964bf8 rest_of_handle_final
        /home/alecop01/toolchain/src/gcc/gcc/final.c:4676
0x964bf8 execute
        /home/alecop01/toolchain/src/gcc/gcc/final.c:4754
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

I can't reproduce it on the GCC 10 branch.


More information about the Gcc-bugs mailing list