From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7B1F385783E; Thu, 7 Dec 2023 07:56:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7B1F385783E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701935797; bh=rSTpkfWmscfSmqOWHIakztNbjAq5n+xkOGA7iPBA4Vk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ksgMW5TzzFMY21Rf0gWNvXqTDcgAwfuMl/bqJYKYw1yoDLsZ/R3E/nexWJ3akSThd A/9JryL9XIQDS7ItQXc2k1ICz8nTKX3aiw/8Z5gRHAD8hxdoj1kyjrIq/x937Rqm4Q ONXZYnrCfQGAcP7jHI5U9XE8RGlLAXBPQH9D5dE4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112411] ICE: SIGSEGV with --param=min-nondebug-insn-uid=2147483647 on powerpc64le-unknown-linux-gnu Date: Thu, 07 Dec 2023 07:56:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D112411 --- Comment #10 from Richard Biener --- vec<> doesn't really support "large" vectors: unsigned m_alloc : 31; unsigned m_using_auto_storage : 1; unsigned m_num; so it's basically using 'int'. I guess we should make that alloc =3D (alloc * 3 / 2) use size_t though or simply do (alloc / 2) * 3 since we know alloc >=3D 16 here so the rounding error isn't important. Still ICEing on overflow here would be desirable.=