From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F09A43857707; Tue, 11 Apr 2023 14:55:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F09A43857707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681224904; bh=132w3OjEw7KrNUpuZEn8xkp4JdkSvkpYzZd+l0iqAYk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EKLOnZ0HRsWVZ++cxtuiDupJzOxvjCGHkt4VHpoA0/FB5UZmL8Rna9T4sPYEzdiWK bCMZJ1QYui2yUp6retIzuDDzv+y4TWtIxa2aa1FMV0MYqJiPFE1LRKKFNHqAkpZthn gxqry9hZ1SuqmZxbT1IvlNoRf+Xaxa6h6sBfXr8k= From: "arsen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109473] ICE during GIMPLE pass: vect: verify_gimple failed with -O1 -ftree-loop-vectorize Date: Tue, 11 Apr 2023 14:55:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arsen 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: short_desc Message-ID: In-Reply-To: References: 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=3D109473 Arsen Arsenovi=C4=87 changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE during GIMPLE pass: |ICE during GIMPLE pass: |vect: verify_gimple failed |vect: verify_gimple failed |with -m32 |with -O1 | |-ftree-loop-vectorize --- Comment #1 from Arsen Arsenovi=C4=87 --- oh, actually, it seems that the reduced case no longer requires -m32: ~/gcc/scratch_build/gcc$ ./cc1 -quiet ccGrpuMH.out -O1 -ftree-loop-vectorize ccGrpuMH.out: In function =E2=80=98do_port_use_buffers=E2=80=99: ccGrpuMH.out:9:14: warning: comparison between pointer and integer 9 | for (; j < buffers; j++) | ^ ccGrpuMH.out:10:14: warning: assignment to =E2=80=98void *=E2=80=99 from = =E2=80=98long unsigned int=E2=80=99 makes pointer from integer without a cast [-Wint-conversion] 10 | endptr =3D (__UINTPTR_TYPE__)endptr + buffers[i]->metas[j]; | ^ ccGrpuMH.out:11:16: warning: comparison of distinct pointer types lacks a c= ast 11 | if (endptr > mem) | ^ ccGrpuMH.out:4:6: error: invalid (pointer) operands =E2=80=98plus_expr=E2= =80=99 4 | void do_port_use_buffers(struct spa_buffer **buffers) { | ^~~~~~~~~~~~~~~~~~~ _110 =3D stmp_endptr_25.16_109 + endptr_17; during GIMPLE pass: vect ccGrpuMH.out:4:6: internal compiler error: verify_gimple failed 0x142f352 verify_gimple_in_cfg(function*, bool, bool) ../../scratch/gcc/tree-cfg.cc:5648 0x12d1050 execute_function_todo ../../scratch/gcc/passes.cc:2098 0x12d15be execute_todo ../../scratch/gcc/passes.cc:2152 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. ~/gcc/scratch_build/gcc 4 $ gcc-12 -x c ccGrpuMH.out -O1 -ftree-loop-vector= ize ccGrpuMH.out: In function =E2=80=98do_port_use_buffers=E2=80=99: ccGrpuMH.out:9:14: warning: comparison between pointer and integer 9 | for (; j < buffers; j++) | ^ ccGrpuMH.out:10:14: warning: assignment to =E2=80=98void *=E2=80=99 from = =E2=80=98long unsigned int=E2=80=99 makes pointer from integer without a cast [-Wint-conversion] 10 | endptr =3D (__UINTPTR_TYPE__)endptr + buffers[i]->metas[j]; | ^ ccGrpuMH.out:11:16: warning: comparison of distinct pointer types lacks a c= ast 11 | if (endptr > mem) | ^ ccGrpuMH.out:4:6: error: invalid (pointer) operands =E2=80=98plus_expr=E2= =80=99 4 | void do_port_use_buffers(struct spa_buffer **buffers) { | ^~~~~~~~~~~~~~~~~~~ _108 =3D stmp_endptr_25.16_107 + endptr_17; during GIMPLE pass: vect ccGrpuMH.out:4:6: internal compiler error: verify_gimple failed 0xe96d34 verify_gimple_in_cfg(function*, bool) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-12.2.1_p20230408/gcc-12-20230408/gcc/tree-cfg.= cc:5561 0xd5c927 execute_function_todo =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-12.2.1_p20230408/gcc-12-20230408/gcc/passes.cc= :2085 0xd5ca51 execute_todo =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-12.2.1_p20230408/gcc-12-20230408/gcc/passes.cc= :2139 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.=