[Bug c++/106491] New: ICE when compiling ArmSVE intrinsics in PCH

denis.yaroshevskij at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 31 09:09:33 GMT 2022


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

            Bug ID: 106491
           Summary: ICE when compiling ArmSVE intrinsics in PCH
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: denis.yaroshevskij at gmail dot com
  Target Milestone: ---

Created attachment 53391
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53391&action=edit
verbose outputs and .ii files

A stack trace:

```
0xd609b3 crash_signal
        ../../src/gcc/toplev.c:327
0x7faec4b3951f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x10d8340 TYPE_VECTOR_SUBPARTS(tree_node const*)
        ../../src/gcc/tree.h:3911
0x10d8340 aarch64_sve::gimple_folder::convert_pred(gimple*&, tree_node*,
unsigned int)
        ../../src/gcc/config/aarch64/aarch64-sve-builtins.cc:2566
0x10e49df fold
        ../../src/gcc/config/aarch64/aarch64-sve-builtins-base.cc:1096
0x10dae1c aarch64_sve::gimple_folder::fold()
        ../../src/gcc/config/aarch64/aarch64-sve-builtins.cc:2680
0x10dae1c aarch64_sve::gimple_folder::fold()
        ../../src/gcc/config/aarch64/aarch64-sve-builtins.cc:2667
0x10dae1c aarch64_sve::gimple_fold_builtin(unsigned int, gimple_stmt_iterator*,
gcall*)
        ../../src/gcc/config/aarch64/aarch64-sve-builtins.cc:3610
0x104f8f2 aarch64_gimple_fold_builtin
        ../../src/gcc/config/aarch64/aarch64.c:14096
0xacd886 gimple_fold_call
        ../../src/gcc/gimple-fold.c:5400
0xacd886 fold_stmt_1
        ../../src/gcc/gimple-fold.c:6098
0x16d108f lower_stmt
        ../../src/gcc/gimple-low.c:388
0x16d1a2c lower_sequence
        ../../src/gcc/gimple-low.c:217
0x16d1a2c lower_gimple_bind
        ../../src/gcc/gimple-low.c:473
0x16d1f16 lower_function_body
        ../../src/gcc/gimple-low.c:110
0x16d1f16 execute
        ../../src/gcc/gimple-low.c:195
```


Reporting this one was tricky, please let me know if you need some more
information

With "-v" I successfully reproduce the crash
"-v -save-temps" causes "-Werror=invalid-pch" to fire

```
cc1plus: error:
/home/dyarosh/space/eve/build_sve512/CMakeFiles/test_pch.dir/cmake_pch.hxx.gch:
not used because `__AARCH64EL__' is defined [-Werror=invalid-pch]
```

If I remove "-Werror" - passes with no crash (maybe it dropped the pch?)

Attaching "-v" output, "-v -save-temps" output and all .*ii files I could find.
Let me know if you need some more information to help reproduce this.


More information about the Gcc-bugs mailing list