[Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)

cnsun at uwaterloo dot ca gcc-bugzilla@gcc.gnu.org
Thu May 27 01:20:32 GMT 2021


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

            Bug ID: 100784
           Summary: ICE: Segmentation fault,
                    contains_struct_check(tree_node*,
                    tree_node_structure_enum, char const*, int, char
                    const*)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210526 (experimental) [master revision
:21638bbbf:1fd76b24306ed4df4cf9e797d900699ed59ce7f7] (GCC)

$ cat mutant.c
typedef double v2df __attribute__((__vector_size__(16)));
f() {
  v2df x;
  v2df y;
  __builtin_ia32_shufpd(x, y, 1);
}

$ gcc-trunk  mutant.c
mutant.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | f() {
      | ^
during GIMPLE pass: lower
mutant.c: In function ‘f’:
mutant.c:2:1: internal compiler error: Segmentation fault
0xf01803 crash_signal
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/toplev.c:327
0xf3cf82 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree.h:3479
0xf3cf82 verify_gimple_assign_ternary
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:4180
0xf3fb37 verify_gimple_in_seq_2
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:5121
0xf42485 verify_gimple_in_seq(gimple*)
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:5160
0xe12660 execute_function_todo
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/passes.c:2044
0xe1331e execute_todo
        /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/passes.c:2096
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.


More information about the Gcc-bugs mailing list