From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA3AD38582AA; Wed, 6 Mar 2024 11:39:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA3AD38582AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709725188; bh=MwE/gOdydlrNErL/fNehthfZb+mKZPiOnLE3IEQexEY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SaSvPnnQt+aXTdXMVkR2UynzS9Kj9FVXus6jNxxCtSDCSmRoc+94djLU6T3Q1NviW HoRHkztH3mxdvalVPWtmf0oZwrovSV2jO8BnjTbb7h1//4Rr3ZoVtwHZsy9e1H3klc j8xQhqq770cNIDrZ8R4Tzjt94gHklpuZpcUXgm40= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105533] UBSAN: gcc/expmed.cc:3272:26: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long int' Date: Wed, 06 Mar 2024 11:39:47 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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: 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=3D105533 --- Comment #5 from David Binderman --- The problem with expmed.c happens with -O2 -march=3Dznver3, so it's more prevalent than I thought. The problem with poly-int.h seems to require -O3. So they look like two separate problems.=