From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC9E638582B0; Sun, 31 Jul 2022 09:09:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC9E638582B0 From: "denis.yaroshevskij at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106491] New: ICE when compiling ArmSVE intrinsics in PCH Date: Sun, 31 Jul 2022 09:09:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: denis.yaroshevskij at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2022 09:09:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106491 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=3D53391&action=3Dedit 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_iterat= or*, 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=3Dinvalid-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=3Dinvalid-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 f= ind. Let me know if you need some more information to help reproduce this.=