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

            Bug ID: 91948
           Summary: SEGV in reload with r276389
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hp at gcc dot gnu.org
                CC: rsandifo at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-unknown-linux-gnu
            Target: cris-elf

Created attachment 46986
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46986&action=edit
Preprocessed source. Repeat as "/x/cris-elf/gccobj/./gcc/cc1 -fpreprocessed
matmul_c8.i -march=v32 -O2"

At r276389 a cris-elf build fails building libgfortran (C source) for the
-march=v32 multilib thus:

/bin/sh ./libtool  --tag=CC   --mode=compile /x/cris-elf/gccobj/./gcc/xgcc
-B/x/cris-elf/gccobj/./gcc/ -nostdinc -B/x/cris-elf/gccobj/cris-elf/newlib/
-isystem /x/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem
/x/gcc/newlib/libc/include -B/x/cris-elf/gccobj/cris-elf/libgloss/cris
-L/x/cris-elf/gccobj/cris-elf/libgloss/libnosys -L/x/gcc/libgloss/cris
-B/x/cris-elf/pre/cris-elf/bin/ -B/x/cris-elf/pre/cris-elf/lib/ -isystem
/x/cris-elf/pre/cris-elf/include -isystem /x/cris-elf/pre/cris-elf/sys-include 
  -DHAVE_CONFIG_H -I. -I/x/gcc/libgfortran  -iquote/x/gcc/libgfortran/io
-I/x/gcc/libgfortran/../gcc -I/x/gcc/libgfortran/../gcc/config 
-I../../.././gcc -I/x/gcc/libgfortran/../libgcc -I../../libgcc
-I/x/gcc/libgfortran/../libbacktrace -I../../libbacktrace -I../libbacktrace 
-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla  -fcx-fortran-rules
-ffunction-sections -fdata-sections   -ffast-math -ftree-vectorize
-funroll-loops --param max-unroll-times=4 -g -O2  -march=v32 -mbest-lib-options
-MT matmul_c8.lo -MD -MP -MF .deps/matmul_c8.Tpo -c -o matmul_c8.lo `test -f
'/x/gcc/libgfortran/generated/matmul_c8.c' || echo
'/x/gcc/libgfortran/'`/x/gcc/libgfortran/generated/matmul_c8.c
libtool: compile:  /x/cris-elf/gccobj/./gcc/xgcc -B/x/cris-elf/gccobj/./gcc/
-nostdinc -B/x/cris-elf/gccobj/cris-elf/newlib/ -isystem
/x/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem
/x/gcc/newlib/libc/include -B/x/cris-elf/gccobj/cris-elf/libgloss/cris
-L/x/cris-elf/gccobj/cris-elf/libgloss/libnosys -L/x/gcc/libgloss/cris
-B/x/cris-elf/pre/cris-elf/bin/ -B/x/cris-elf/pre/cris-elf/lib/ -isystem
/x/cris-elf/pre/cris-elf/include -isystem /x/cris-elf/pre/cris-elf/sys-include
-DHAVE_CONFIG_H -I. -I/x/gcc/libgfortran -iquote/x/gcc/libgfortran/io
-I/x/gcc/libgfortran/../gcc -I/x/gcc/libgfortran/../gcc/config -I../../.././gcc
-I/x/gcc/libgfortran/../libgcc -I../../libgcc
-I/x/gcc/libgfortran/../libbacktrace -I../../libbacktrace -I../libbacktrace
-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -ffast-math -ftree-vectorize -funroll-loops
--param max-unroll-times=4 -g -O2 -march=v32 -mbest-lib-options -MT
matmul_c8.lo -MD -MP -MF .deps/matmul_c8.Tpo -c
/x/gcc/libgfortran/generated/matmul_c8.c -o matmul_c8.o
during RTL pass: reload
/x/gcc/libgfortran/generated/matmul_c8.c: In function 'matmul_c8':
/x/gcc/libgfortran/generated/matmul_c8.c:3002:1: internal compiler error:
Segmentation fault
 3002 | }
      | ^
0xb7356f crash_signal
        /x/gcc/gcc/toplev.c:326
0x7f203176b05f ???
       
/build/glibc-77giwP/glibc-2.24/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x9c0c41 end_hard_regno
        /x/gcc/gcc/regs.h:266
0x9c0c41 overlaps_hard_reg_set_p
        /x/gcc/gcc/regs.h:334
0x9c0c41 call_clobbered_in_region_p(unsigned int, unsigned long, machine_mode,
unsigned int)
        /x/gcc/gcc/function-abi.h:312
0x9c0c41 ira_need_caller_save_p(ira_allocno*, unsigned int)
        /x/gcc/gcc/ira-int.h:1539
0x9c0c41 allocno_reload_assign
        /x/gcc/gcc/ira-color.c:4401
0x9c0c41 ira_reassign_pseudos(int*, int, unsigned long, unsigned long*,
unsigned long*, bitmap_head*)
        /x/gcc/gcc/ira-color.c:4520
0xb1df95 finish_spills
        /x/gcc/gcc/reload1.c:4273
0xb2470d reload(rtx_insn*, int)
        /x/gcc/gcc/reload1.c:1018
0x9a25b8 do_reload
        /x/gcc/gcc/ira.c:5528
0x9a25b8 execute
        /x/gcc/gcc/ira.c:5702
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.
Makefile:4266: recipe for target 'matmul_c8.lo' failed
make[6]: *** [matmul_c8.lo] Error 1
make[6]: Leaving directory '/x/cris-elf/gccobj/cris-elf/v32/libgfortran'

Last known working build was r276299.

Reply via email to