NetBSD Problem Report #60659
From www@netbsd.org Fri Aug 28 13:52:55 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 56AC51A923B
for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Aug 2026 13:52:55 +0000 (UTC)
Message-Id: <20260828135254.29EA81A923C@mollari.NetBSD.org>
Date: Fri, 28 Aug 2026 13:52:54 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: missing STACK_ALIGNMENT?
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>
>Number: 60659
>Category: port-m68k
>Synopsis: missing STACK_ALIGNMENT?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: thorpej
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 28 13:55:00 +0000 2026
>Closed-Date: Fri Aug 28 15:08:56 +0000 2026
>Last-Modified: Fri Aug 28 15:08:56 +0000 2026
>Originator: Taylor R Campbell
>Release: current
>Organization:
The m68kBSD Alignment, Inc.
>Environment:
>Description:
m68k header files don't appear to define STACK_ALIGNMENT.
Should they?
The ABI says it requires longword (4-byte) alignment:
https://people.debian.org/~glaubitz/m68k-sysv-abi.pdf#page=39
>How-To-Repeat:
code inspection
>Fix:
Maybe?
>Release-Note:
>Audit-Trail:
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-m68k/60659: missing STACK_ALIGNMENT?
Date: Fri, 28 Aug 2026 14:41:47 -0000 (UTC)
gnats-admin@NetBSD.org ("campbell+netbsd@mumble.net via gnats") writes:
> m68k header files don't appear to define STACK_ALIGNMENT.
> Should they?
> The ABI says it requires longword (4-byte) alignment:
> https://people.debian.org/~glaubitz/m68k-sysv-abi.pdf#page=39
There is STACK_ALIGNBYTES (== max padding needed for alignment) which
defaults to __ALIGNBYTES which defaults to (sizeof(int)-1).
Responsible-Changed-From-To: port-m68k-maintainer->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Fri, 28 Aug 2026 14:58:04 +0000
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->closed
State-Changed-By: thorpej@NetBSD.org
State-Changed-When: Fri, 28 Aug 2026 15:08:56 +0000
State-Changed-Why:
Not a bug; mlelstv is correct, the value does get defined and to the
correct value.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.