From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CBE2D3858D35; Thu, 16 Nov 2023 12:47:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBE2D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700138843; bh=eHFhdp8Vz1kiRjh7jIhYgCfHRscVBsw4Cdjp/ocuAjQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jJGPvOKe2R601Nr0RV36nnLT6SPNGH169maMm1G39CSTrdXz+9y9ty7aIZNI5AtdV 9DBDvKm3SQcYHyis1NPt+RPkXhAdYnl9fmUWQs68HpsyaWBpIAP+/nXQ/wk+e0TmBp bY94wwW/UKF7nqdlJ38N64+w7krq1ZeSFk+HHUCQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112565] Abnormal Jump in Execution using 'stepi' Command in GDB under O2 optimization Date: Thu, 16 Nov 2023 12:47:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D112565 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #4 from Richard Biener --- GCC can interleave instructions belonging to different source lines so that= 's what you see. Since you advance assembler instructions I don't see a way to "improve" things here when optimizing.=