From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C08883858D33; Sun, 8 Jan 2023 22:20:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C08883858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673216420; bh=8a8idIlEaRX+StUu5xTValz2zLFHaSJxjx/hjmTv/n4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a+m9MF3L0vHC8gYVuBmtcQ1RHT99XCVvbDqILJG5IkO39g3AJq6ADvG2LV1aaY92m SG3AiWV/Gz040ChuTr+R8T7z3RlUc3h2CGJeptP/O+zEf3s1e18nT8u2c9BM2yQ2GQ W8Dfz2CEoVCBgU//G3Sa+NMcm80oc0j9frWw+6Ks= From: "eric-bugs at omnifarious dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108337] Misaligned memory access issues when inline assembly is used with optimization on x86_64 Date: Sun, 08 Jan 2023 22:20:20 +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.1 X-Bugzilla-Keywords: inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: eric-bugs at omnifarious dot 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: 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=3D108337 --- Comment #5 from eric-bugs at omnifarious dot org --- (In reply to Andrew Pinski from comment #4) > Yes it affects every function. There might be another way to use attribute > to specific that only main needs this treatment. Or better yet add a _sta= rt > function in assembly to that. That's what I was thinking. I need to actually re-implement a bunch of the = g++ runtime environment for what I want to achieve, and so that's likely what I= 'll be doing. Thanks!=