From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C24E31F47C for ; Sun, 15 Jan 2023 23:05:55 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QfSb2YVr; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHC4S-0003h9-9m; Sun, 15 Jan 2023 18:05:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHC4R-0003h1-DI for bug-gnulib@gnu.org; Sun, 15 Jan 2023 18:05:47 -0500 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHC4P-0000d4-9x for bug-gnulib@gnu.org; Sun, 15 Jan 2023 18:05:47 -0500 Received: by mail-oi1-x229.google.com with SMTP id j130so22040620oif.4 for ; Sun, 15 Jan 2023 15:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NWxw74/XMUT+61Rc3SoBVNfMJHAqhftBTOBbYEB0b9w=; b=QfSb2YVrBwiB7n2bRV+Ck1ZIuEZ8RsXU6iom4xdRmj3CnpcMJse4evfllE4GqbGEaW vqftHAXkmtPc9uhYv8XqmWkonC6PDTm8tIFRwq9o4yl8hHYpZrf9qWau55TYYvFxB5wv Z8X4G1QUjlFD1gndEAwH9+y9R9Li9BCfN2Q2mGS+LvTGbK/At2+n5PQXYRn5sGncc+FK lzDk8oCXsUzLbQhqdygfpe8iV43d/o+geMMLqD5TZsydNoc85vsu5V2CpaTI8N+HPDcp yPns1osW0DxggGaqGPQWx7h/pA23eK3kCj0IjpZDgLcOTVUXLCP+DSh4fjbAKhETjq+z vJ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NWxw74/XMUT+61Rc3SoBVNfMJHAqhftBTOBbYEB0b9w=; b=i2KBPji6fFXYTq6FgolEbpgqT9zh5a3eWBuKiLORTk7dbj5gWEp8UdAa95BlkcFxTz DH3vS4uj+0LMAadCeHjFBW0OrvT23fbGOL0OwFAKDXJGft53NhYMgTNNejpaLpTBBtWH CZ/XWGkvPFSX/51gPPdauK8sYXSHVI7lX1xCwuVJqesoXrLgIm7Co6pYUR0i3yTmvcI6 Bqtsp/ywkloRBXpsA30PVfE7SrM962f+XBKQTglu1Ibqx18IuqbilZqS5t+TeM4S6nKm I2zOgOmZrzNZzz8moi7I5vatZpmx/sRt3gwWWTKnSB5W9xkH19AXB5jDgNINq10u2ENS QAKQ== X-Gm-Message-State: AFqh2kpLkvLSjbB/9mmtQyDAL+sTp46rTeKNQ9uFtnEgGH/RMJJPLldd fKmBd22cieLWQY3oMO/YncEPZt+C1KtxctIbU5w= X-Google-Smtp-Source: AMrXdXuK68Usvj6eEYMUaOd82Eewn0By3zYIpsuUYrJ0GstJHXiTxNVhFM6DQahLuVyDcUhOK5Aq4Yde64kMoQIJxro= X-Received: by 2002:a05:6808:7c1:b0:364:bd84:ca34 with SMTP id f1-20020a05680807c100b00364bd84ca34mr468176oij.262.1673823943983; Sun, 15 Jan 2023 15:05:43 -0800 (PST) MIME-Version: 1.0 References: <20230115012007.2175339-1-raj.khem@gmail.com> <6427f898-83b5-abe2-afd3-a4dc9ecb7a09@cs.ucla.edu> In-Reply-To: <6427f898-83b5-abe2-afd3-a4dc9ecb7a09@cs.ucla.edu> From: Khem Raj Date: Sun, 15 Jan 2023 15:05:33 -0800 Message-ID: Subject: Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newer To: Paul Eggert Cc: bug-gnulib@gnu.org Content-Type: multipart/alternative; boundary="00000000000099096705f2558150" Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=raj.khem@gmail.com; helo=mail-oi1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org --00000000000099096705f2558150 Content-Type: text/plain; charset="UTF-8" On Sun, Jan 15, 2023 at 11:52 AM Paul Eggert wrote: > On 2023-01-14 17:51, Paul Eggert wrote: > > > We already have two copies of that stuff elsewhere (in lib/stdalign.in.h > > and m4/stdalign.m4), for reasons that currently escape me. > > To try to address that in an upward-compatible way, I installed the > attached. This shrinks the number of copies of that code down to one. > The basic idea is to prefer C23 semantics in apps and the rest of Gnulib > by using the new alignasof module, whereas the existing stdalign module > is now for C11/C17 compatibility and is now deprecated. Your patch fixed the issue I did not try regenerating the gnulib in the concerned project but copied the change manually to test. AFAICT c++ looks to be not affected > --00000000000099096705f2558150 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Jan 15, 2023 at 11:52 AM Paul Eggert <eggert@cs.ucla.edu> wrote:
On 2023-01-14 17:51, Paul Eggert wrote:

> We already have two copies of that stuff elsewhere (in lib/stdalign.in= .h
> and m4/stdalign.m4), for reasons that currently escape me.

To try to address that in an upward-compatible way, I installed the
attached. This shrinks the number of copies of that code down to one.
The basic idea is to prefer C23 semantics in apps and the rest of Gnulib by using the new alignasof module, whereas the existing stdalign module is now for C11/C17 compatibility and is now deprecated.

Your patch fixed the issue I did not= try regenerating the gnulib in the concerned project but copied the change= manually to test. AFAICT c++ looks to be not affected=C2=A0
--00000000000099096705f2558150--