Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3060325pxy; Sun, 25 Apr 2021 12:34:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMCBl2WIcNGGwHPWCJCK6/2JZeWoWjvcm/MgBwGiFzvR1QuTmSMrI/seYmLbk9jvJc2e0F X-Received: by 2002:a17:902:eccd:b029:ea:ed20:b646 with SMTP id a13-20020a170902eccdb02900eaed20b646mr14897945plh.4.1619379240266; Sun, 25 Apr 2021 12:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619379240; cv=none; d=google.com; s=arc-20160816; b=EXWc4yMj91Ke24nf6+z7Pco+rqnutInClxetOTtYCUOIh+kiNjNt7Xi9jrb6ewwIZd W1OfPE+1t1JT39JhEEIJfVQ8nG2WQhvzyzV7McPvo/K0/WG+jzUrGIQyl3haZGK76yhu FqLLt92ZC0Yc2Qrkz+ypvMdjhHvQOrtwwLaZcgf4FsMXDayZ9mln1iSMSe8rn9fxnmbv F3DvJ2a0qrjn3QOgi4glBQeIqAv5CRAU1i+6ejcEN9h7PPQMLB1tI90SrQyp5dl9qyOk wOSETvh56HHA04uxfbBVVOmHRwcwBqPFio7QOuBtTzxVI52MIqyfuaDc7T/82npE2I1j pAnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WqNcLUTsxL7EWG8S77mFjjzJv9tk348SvyUNG1kjs4c=; b=Lkxh4XfooKcilNdh7hNtpl0ZEk4M9WWUbBAFupHhi9Z5WmSPAqjsMVFgJpQLuBAm0L Ha1BCnnxybaZ3mL4hxwsJbm530gJBHZ2f9+h/Y1otnlMLEZPSi0TtmTEEB75sNzpEgyD x4/39rfpmH0lzB0xrFOx3YUfJWiGA4SZ4/8YBc8Fs/3PLkpM7CxFCCxyPUlkSjV2auFR jjwSNHPgT/HCCRAOP+L+ioEdocmAxQyx+hPR5Y+rREkbh5qrTWLY7+G/dH26bOle7HoA 9uod6hX9o4rXaV68cMosMEpMaAhPS4gNzUrDPfbE27+OGB2ABv64LtcmTruxt8yUqxx0 SZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@panix.com header.s=panix header.b=UChIu6fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si16452682pfb.310.2021.04.25.12.33.46; Sun, 25 Apr 2021 12:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@panix.com header.s=panix header.b=UChIu6fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbhDYTd4 (ORCPT + 99 others); Sun, 25 Apr 2021 15:33:56 -0400 Received: from l2mail1.panix.com ([166.84.1.75]:59969 "EHLO l2mail1.panix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbhDYTd4 (ORCPT ); Sun, 25 Apr 2021 15:33:56 -0400 Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 4FSySz3gfQzDjg; Sun, 25 Apr 2021 15:17:07 -0400 (EDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4FSySy3clvzSNw; Sun, 25 Apr 2021 15:17:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1619378226; bh=XhZeMGV3zn3KbXb4vXiIiqcwTRwZv6RkFQ/y5sRLQ54=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=UChIu6fy15PFybZhRlSS4vrq054UVvqJdU+KyBlRIxDTTEMHxGg67D25N0JFbLdVR Kpz2r1rpi9w8L0pujDrTE5VNtc1dOAgk9Q+U0GRptV9ZEyiYrybQdA9biZxvkpUBjM zYgAEqqXpozo0XtOvTFPBBXgir5C57DjzTdcc/cY= Received: by mail-yb1-f171.google.com with SMTP id p202so18428452ybg.8; Sun, 25 Apr 2021 12:17:06 -0700 (PDT) X-Gm-Message-State: AOAM532wkqOoWBIjPeoDxhJuTOFDCRwJFb7Sgby9eKFfY5ZT+I1fXHPP SxnpyKjV7HFe61q+BpWqy/RWtLP2/mw4vk7EMqA= X-Received: by 2002:a5b:34a:: with SMTP id q10mr19917362ybp.224.1619378226198; Sun, 25 Apr 2021 12:17:06 -0700 (PDT) MIME-Version: 1.0 References: <20210423230609.13519-1-alx.manpages@gmail.com> <78af3c302dd5447887f4a14cd4629119@AcuMS.aculab.com> In-Reply-To: <78af3c302dd5447887f4a14cd4629119@AcuMS.aculab.com> From: Zack Weinberg Date: Sun, 25 Apr 2021 15:16:54 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] bpf.2: Use standard types and attributes To: David Laight Cc: Alexei Starovoitov , Alejandro Colomar , bpf , linux-man , "gcc-patches@gcc.gnu.org" , "libc-alpha@sourceware.org" , "Michael Kerrisk (man-pages)" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 24, 2021 at 4:43 PM David Laight via Libc-alpha wrote: > From: Alexei Starovoitov > > On Fri, Apr 23, 2021 at 4:15 PM Alejandro Colomar wrote: ... > > > Some pages also document attributes, using GNU syntax > > > '__attribute__((xxx))'. Update those to use the shorter and more > > > portable C2x syntax, which hasn't been standardized yet, but is > > > already implemented in GCC, and available through either --std=c2x > > > or any of the --std=gnu... options. .. > And the code below is no more portable that a #pragma'. > It is probably worse than __attribute__((aligned(8))) > + uint64_t [[gnu::aligned(8)]] value; > The standards committee are smoking dope again. > At least the '__aligned_u64 value;' form stands a reasonable > chance of being converted by cpp into whatever your compiler supports. Is it actually necessary to mention the alignment overrides at all in the manpages? They are only relevant to people working at the level of physical layout of the data in RAM, and those people are probably going to have to consult the header file anyway. zw