From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB13D3858C2D; Thu, 8 Sep 2022 22:02:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB13D3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662674552; bh=JitdOM7OlAwcvVDkbmXqCru/NjeWAXBqxmWkndfaggk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dWe4ZVtQr8d5CPGaRBl9xYBtErgyAxcUX64d5eD+QSbbqNFSEfZtmAXqU4OQ1G/5B CrWJeHm0IOQUvAA0iCl0X/+YNZyzHRbaPbDyE0KYuErh36e5hO8H04rVvYb2IhRir9 6PLn8X4bZKA3m17HB/R1JLDX7Pl56wUdwHLrsk1c= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106892] Wrong code at -O3 on x86_64-linux-gnu Date: Thu, 08 Sep 2022 22:02:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: cc 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=3D106892 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- This is UB, isn't it? g() <=3D 7 when g implicitly returns int, but doesn't return anything, falls through to the end instead.=