From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by sourceware.org (Postfix) with ESMTPS id E79F238515D9 for ; Sun, 25 Apr 2021 19:17:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E79F238515D9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=panix.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zackw@panix.com Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4FSySy469BzSPQ for ; 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-f177.google.com with SMTP id q192so8432393ybg.4 for ; Sun, 25 Apr 2021 12:17:06 -0700 (PDT) X-Gm-Message-State: AOAM530ErxQaAmElCfdyJWEs1vZcNLKmLbdEvZXSexAJBVKIA1pAZAcc vJ2YG+ENjJlJwQmrrUQpMPm/1HntxgSGWwyLAt8= X-Google-Smtp-Source: ABdhPJztPCPXO7s31JTURrUaXheP5N6/ezQIspG2gIv0gIdLsrS/RpqygJaJ2EKeEgLkyzpRG1xzKDeBit2LpklR234= 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" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2021 19:17:08 -0000 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