From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4662C3858D39; Tue, 10 Oct 2023 06:11:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4662C3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696918315; bh=j46CMNeVEFBOJDJWaQMEF6OCaeyCjD9sLAkL4USmLFE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fjJA/DV6ME5vYxRpjllN1AJ4w7qxZPXBEf9lroxk3EeaYsBrtF9rWPJUKWvw3r4Db BXSvqehs+Pjo0I72CXCiT8rh3hpDkg5tk6M7DltfAEfl0jzlhJHG9DhGUWUO/w4ACi 2cN6XHzuidnVV6nMyeBb2iuyhfrBpE3stITHppbI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111755] The built-in memset function in GCC inadvertently generates code like "vst1.8 {d8-d9}, [sp:64]", which assumes an 8-byte alignment on the stack pointer $sp, leading to alignment violations Date: Tue, 10 Oct 2023 06:11:55 +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: 9.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D111755 --- Comment #3 from Andrew Pinski --- The ARM EABI says the stack is always aligned to 8 byte so unless you change GCC to be do this, this is exacted and the incoming stack needs to be align= ed correctly.=