From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB5D33858288; Wed, 3 May 2023 16:57:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB5D33858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683133069; bh=HzRbcewqgi2YoqnbKqv1YsbRhgYFlV/guw/dI3wy73k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WCoSA5tlDzwf873l876Hk5eyC8KjksCuTH+yND+33hJKG4WicPs1Y1D89SVYq6B2M jW3gqw7wh+YdGTsNXMg6sK2tabC/X7krNoXLu1Kco/cWMRyRCvUDFp/UEWSuD78wHa OV93GkW5mJACEQNrqV5/TzuAUzeY7p7QHpJwEpeA= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109650] avr-gcc incorrect code with -Os Date: Wed, 03 May 2023 16:57:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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: component 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=3D109650 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |target --- Comment #7 from Georg-Johann Lay --- Target issue: Implicitly introduced by PR92729 as avr's machine dependent r= eorg in avr.cc::avr_reorg() still assumes there is nothing between a comparison = and the following conditional branch, like it was with cc0. However, pass "jump= 2" introduces a label between a comarison and a branch insn. Affected are all versions from v12 onwards.=