From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D60F3858C52; Mon, 22 May 2023 18:07:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D60F3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684778865; bh=Wpam6x7bMZFqnzGw56JmulELYBXG0hpi7T7Ogg/0Y4M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M4NBdbTPxpBAwS5B/K+Aud96ZimCTSm7GHqoPApznzf2YP1SuoAboDXulpVlXY/SD giEhaMRTA5q36CU3Y04puBTKnUJ5F6zOERc4i9RC4ygvTB5heVJykHxfM0ePA32Bos eneoT4vAvsywARJXx97EuAEP9Uj5fS1HhfaqGEsc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109886] UBSAN error: shift exponent 64 is too large for 64-bit type when compiling gcc.c-torture/compile/pr96796.c Date: Mon, 22 May 2023 18:07:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D109886 --- Comment #3 from Andrew Pinski --- (In reply to Aldy Hernandez from comment #2) > If irange::supports_p (TREE_TYPE (arg)) is true, we're talking about an > integer/pointer, but if range_cast is being called on a parm_type of > RECORD_TYPE, someone's trying to cast a structure to an integer. Is that > the intent here, because that will not work with ranges?? That is correct. The generated code has a VIEW_CONVERT_EXR from an integer = type to a RECORD_TYPE.=