From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 5986621BB7 for ; Sun, 21 Apr 2024 20:33:35 +0200 (CEST) Received: (qmail 3918 invoked by uid 550); 21 Apr 2024 18:33:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3883 invoked from network); 21 Apr 2024 18:33:31 -0000 Date: Sun, 21 Apr 2024 18:23:24 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: musl@lists.openwall.com In-Reply-To: Message-ID: References: <3KDMGHI91MHTL.24XCHF6E4X1XG@mforney.org> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [musl] Alignment attribute in headers Markus Wichmann dixit: >Am Sun, Apr 21, 2024 at 03:50:31PM +0000 schrieb Thorsten Glaser: >> I haven=E2=80=99t looked at the C11 one. > >C11's _Alignas can only raise alignment, not lower it. Alignment >specifications with a lower number than the field already has are >ignored. That=E2=80=99s sensible, and all I want when throwing in extra (mostly 32-bit, but also some 64-bit) alignments there (m68k does not use =E2=80=9Cnatural=E2=80=9D alignment in its ABI but aligns to a max. of = 16 bits, which comes from early design; in Debian, we=E2=80=99ll want to change the ABI for Linux executables, but are not started yet, but e.g. TOS/MiNT executables including bootloaders need to stick with that). >I can't believe the C++ guys screwed up so hard as to make >lower alignment UB. I =E2=80=9Cjust=E2=80=9D looked at cppreference.com so don=E2=80=99t take t= his as definite but someone who has the standard might want to look into that. bye, //mirabilos --=20 15:41=E2=8E=9C Somebody write a testsuite for hello= world :-)