From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0009B3858D39; Wed, 28 Jun 2023 19:06:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0009B3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687979185; bh=XcG6Q1CBIQ/a7ofI/vL+24Acbzo/UsLRWuXoWMni10g=; h=From:To:Subject:Date:From; b=Q3oVGYq6YjIFYXGS1D0ytbqN3B8QrWMZ4oEa9fzEuu/92Be8eMWM6g3gP8ZFfEBJy 6Q5IqmlgZXs2G5lhihzd6Wo3pjPaNeFtkzYOGLMAd7HaAv9K8xaXS8eQE74h9DjFTT 62116OlHLeMkz61h6hdQ/aurP5uC8M71VxVG660g= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110465] New: [14 regression] ICE when building openssl with new vector_type checking Date: Wed, 28 Jun 2023 19:06:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org 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 cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110465 Bug ID: 110465 Summary: [14 regression] ICE when building openssl with new vector_type checking Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Created attachment 55419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55419&action=3Dedit libcrypto-lib-rc5_enc.i amd64 this time ;) `gcc -c libcrypto-lib-rc5_enc.i -O2 -march=3Dx86-64-v2` is enough to repro. ``` x86_64-gentoo-linux-musl-gcc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.1.1 -I../openssl-3.1.1/include -I../openssl-3.1.1/providers/common/include -I../openssl-3.1.1/providers/implementations/include -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPOLY1305_ASM -DSHA1_ASM -DSHA256_= ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -fPIC -pthread -m64 -Wa,--noexecstack -O2 -pipe -march=3Dnative -fdiagnostics-color=3Dalways -frecord-gcc-switches -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR=3D"\"/etc/ssl\= "" -DENGINESDIR=3D"\"/usr/lib/engines-3\"" -DMODULESDIR=3D"\"/usr/lib/ossl-mod= ules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF crypto/rc5/libcrypto-lib-rc5_enc.d.tmp -MT crypto/rc5/libcrypto-lib-rc5_enc= .o -c -o crypto/rc5/libcrypto-lib-rc5_enc.o ../openssl-3.1.1/crypto/rc5/rc5_en= c.c during GIMPLE pass: ccp ../openssl-3.1.1/crypto/rc5/rc5_enc.c: In function 'RC5_32_cbc_encrypt': ../openssl-3.1.1/crypto/rc5/rc5_enc.c:20:6: internal compiler error: tree check: expected none of vector_type, have vector_type in gimple_simplify_14= 4, at gimple-match-3.cc:1027 20 | void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, | ^~~~~~~~~~~~~~~~~~ 0x556c8ddc26d5 tree_not_check_failed(tree_node const*, char const*, int, ch= ar const*, ...) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:8936 0x556c8e35d4a2 tree_not_check(tree_node*, char const*, int, char const*, tree_code) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.h:3581 0x556c8e35d4a2 gimple_simplify_144(gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node*, tree_node**, tree_code) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/build/gcc/gimple-match-3.cc:1027 0x556c8fd5720a gimple_simplify_BIT_XOR_EXPR(gimple_match_op*, gimple**, tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/build/gcc/gimple-match-2.cc:9569 0x556c8f196bce gimple_resimplify2 =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-match-e= xports.cc:967 0x556c8f197301 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_no= de* (*)(tree_node*), tree_node* (*)(tree_node*)) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-match-e= xports.cc:834 0x556c8e71bc25 gimple_fold_stmt_to_constant_1(gimple*, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-fold.cc= :7472 0x556c8ec06e5a ccp_fold =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-ccp.c= c:1289 0x556c8ec06e5a evaluate_stmt =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-ccp.c= c:2222 0x556c8ec0895d visit_assignment =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-ccp.c= c:2856 0x556c8ecc0b6a ssa_propagation_engine::simulate_stmt(gimple*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-propa= gate.cc:221 0x556c8ecc0eaa ssa_propagation_engine::simulate_block(basic_block_def*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-propa= gate.cc:328 0x556c8ecc1413 ssa_propagation_engine::ssa_propagate() =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-propa= gate.cc:478 0x556c8ebffc9c do_ssa_ccp =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-ccp.c= c:2975 0x556c8ebffc9c execute =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-ccp.c= c:3021 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. make[1]: *** [Makefile:13261: crypto/rc5/libcrypto-lib-rc5_enc.o] Error 1 ``` ``` gcc (Gentoo Hardened 14.0.0 p, commit 6cb33e2f39e289ec4f25f845d8153053147c5= c49) 14.0.0 20230628 (experimental) 9757e4440bd8755d327601a60a73d57d712583ed Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ```=