From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84D953857C65; Fri, 8 Mar 2024 08:28:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84D953857C65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709886500; bh=n0Ip9sfdUDtXJbgtBb4Ip906/+MSiYhA6dkJXn+ihac=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Nq4ShzPautbeEUMCsmSbJZdc4cmBfxnaMz5GXoJW0whhN6P9nIUlW4Snht7nj6zep 59go1jyT+XxB5vQFKO1K/MXCyJCHzocpuowSY0JBDi1LuJh4cDtESLWmdX4gTXg8kl Z+ZhMQDBrYruA4DD10gE0VmuzgMbKW+PLdOi4nU8= 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: Fri, 08 Mar 2024 08:28:01 +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 #13 from David Binderman --- Seems fixed to me.=20 I built a bootstrap with ASAN and UBSAN for languages C, C++ and Fortran and changed the usual -O2 for -O3 -march=3Dznver3 and the bootstrap passed. I hadn't realised a bootstrap was such a good test of the compiler.=