From nobody Wed Jun 11 17:05:47 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bHX9h4ZNrz5yB9G for ; Wed, 11 Jun 2025 17:06:00 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bHX9h1bXtz3fCv for ; Wed, 11 Jun 2025 17:06:00 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3a4f71831abso102025f8f.3 for ; Wed, 11 Jun 2025 10:06:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749661558; x=1750266358; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5acwD2pAooMtXbPq/ppU/UiUWcXHeAoC73xbEYn/6BY=; b=RxzhmKOGvbTda34WAb1KUgkP9iNBTPmNtkzt9fnSjdUCwa2FwvdkjBFcMU5Y+WpJlt DrZvSixnq0tlQUdFfoNNhPEfIa2uabm4vxFuYjLCDZGX3Bc2Sm/uY2cw//p0c/tWeNFw 3KVsilkWS5aZy/HpY99nsA/A2wxjFRatjuS9DrgD27k/oPYFvYSRppRd8vIyf7M3PsGF NmE1f2FIsXjoUlOWiIcoL/saCI2mj4idJ2aymlgQgTgxaTRya6Yv8cT94gwobOPLEum9 av+dBiEx9eh7Wz0bvNHBClwb/on+frb4CCNqS9jgtJdhpCclQl6ySmoJy5R28KTzavEC rPXw== X-Forwarded-Encrypted: i=1; AJvYcCWf8ItoExOE2s+g9MZOCLcLSV+Ma83mS8wMNTXOv4R8Ql6Kp90DOiF6hBigUZMVz7wANSUH+leq2d2iv6JJYQ+dOQBJ@freebsd.org X-Gm-Message-State: AOJu0Yz4uEzdhh49q6+Vd4xWJQwISfQgOd2c8M+rw/5kOmYP5aCLvT/3 CjWV1qlMtMPo4rOVsG+U5uByJxsqhUXwcViMZITYiHWVr123zYjuOJKz5VNvxFpoH5A= X-Gm-Gg: ASbGncslWbJtWcd4BgiXRItB48wgbAfmrl6mHo7CU9C7lKZwFq397Q1cfCiGdZDBR4a Hl6I7sSjslCLbEF8lv+lZlrZx4WWb912YO1RaHZX3nCcdCRtCpzVbI240o2OZW8jtKfWFtOa17B xaWqSDeTZJ9gUk1Pc5efJFLY2ckPZNdM2DtB+XmBfXAWrnrTmToqVJWR9+nL5Gth3F1w4bEf5YQ PXdn/4rtExVN09kGOrzKhOtoLVHS/VdQf5EPW3OvZ+sppTL4OUHoVXQ0kJQzbTRP8g5qJtz66ef 0KnBv/fZDZ3FX5CBLYO9yPIk09LHhfYT6sZh5F7fJsAoaUXW/0DbUzKG/xO2pa/KyUohI9MHkWd m X-Google-Smtp-Source: AGHT+IGxtrFbUrYYjmUcYSX3FJBNE7TdYTOsE6d9v45+o6MP3MHbYUgClBItCMlI1Ie1/8nz6VnMLw== X-Received: by 2002:a05:6000:3104:b0:3a4:e75f:53f5 with SMTP id ffacd0b85a97d-3a5607c965emr132851f8f.35.1749661558005; Wed, 11 Jun 2025 10:05:58 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.201]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a53244f516sm15814981f8f.74.2025.06.11.10.05.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2025 10:05:57 -0700 (PDT) Content-Type: text/plain; charset=us-ascii List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: git: ab3d713e93dc - main - sys/_types.h: use builtins to for __max_align_t From: Jessica Clarke In-Reply-To: <202506111700.55BH0Ka6042574@gitrepo.freebsd.org> Date: Wed, 11 Jun 2025 18:05:47 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <37D99680-366D-4D11-BC19-B6D676FA1E22@freebsd.org> References: <202506111700.55BH0Ka6042574@gitrepo.freebsd.org> To: Brooks Davis X-Mailer: Apple Mail (2.3826.600.51.1.1) X-Rspamd-Queue-Id: 4bHX9h1bXtz3fCv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] On 11 Jun 2025, at 18:00, Brooks Davis wrote: >=20 > The branch main has been updated by brooks: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dab3d713e93dc1d322398657125071101= c08e2ce5 >=20 > commit ab3d713e93dc1d322398657125071101c08e2ce5 > Author: Brooks Davis > AuthorDate: 2025-06-11 16:39:01 +0000 > Commit: Brooks Davis > CommitDate: 2025-06-11 16:39:01 +0000 >=20 > sys/_types.h: use builtins to for __max_align_t >=20 > Use __attribute__((__aligned__(x))) and __alignof__(x) in places of = local > macros that ultimately wrap these. We don't support compilers that = don't > define these so there's little loss of generality. >=20 > This mirrors Clang's stddef.h. >=20 > Reviewed by: imp > Exp-run by: antoine (PR 286274) > Pull Request: https://github.com/freebsd/freebsd-src/pull/1595 > --- > sys/sys/_types.h | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/sys/sys/_types.h b/sys/sys/_types.h > index c84b84edd2b8..f6d1f26551e0 100644 > --- a/sys/sys/_types.h > +++ b/sys/sys/_types.h > @@ -181,9 +181,11 @@ typedef __uint_least32_t __char32_t; > #endif >=20 > typedef struct { > - long long __max_align1 __aligned(_Alignof(long long)); > + long long __max_align1 > + __attribute__((__aligned__(__alignof__(long long)))); > #ifndef _STANDALONE > - long double __max_align2 __aligned(_Alignof(long double)); > + long double __max_align2 > + __attribute__((__aligned__(__alignof__(long long)))); > #endif > } __max_align_t; >=20 _Alignof is the standard C spelling of it. We should be adopting the standard names for things more, polyfilling with GNU macros when not available, not increasing our use of old GNU C equivalents that predate their additions to the standard. This should really be _Alignas(_Alignof(...)). Jess