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=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 B42B81F59D for ; Mon, 16 Jan 2023 17:02:17 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=clisp.org header.i=@clisp.org header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=qs4Uei4L; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHSrq-00068R-0D; Mon, 16 Jan 2023 12:01:54 -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 1pHSrg-0005yC-KC for bug-gnulib@gnu.org; Mon, 16 Jan 2023 12:01:44 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.218]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHSrc-0007kx-5N for bug-gnulib@gnu.org; Mon, 16 Jan 2023 12:01:43 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1673888483; cv=none; d=strato.com; s=strato-dkim-0002; b=TZzQwNG4RZoY+WsB7oXK3eNMuPEUQoVi3/oXIO+azXnxnM4WsAxxGrLQw4Qd5+1vTa vtFGu555T/xQZ5OnFHG5lmgymDYrcsLWwt3SUO0Snd8t+7KchO4QtZhyammr82DFli0e prjIL9aWtnbb+q33nD0P8VHunD+kL004nm6B+zJAdV52yOBvesDT6gLo9BLrOq3W/ofP nzbss/NCnpnbUEvV6ttFsN2aKIKpIhgdqDODwaoUO+wtqzW4k0EcUVZXAitQKeolU6iV JIQ/l6p79OLupoaReK/WlbEr+xPLdvKVBVw6gtrU9IRkN10pW42PIQ2+2nDSFSfNQXN6 IALg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1673888483; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AHq+utAwv5X1E1yMe4NYEBKRfwC1AaS+wpycZPXGPNw=; b=HGOtzD/CLJIdC56MUPgRu957ZzQsziKjkd9msVBmdGhYC4XICGzqQKa+sw61jQyyCz y8PEWThnglo0BhN1BNxtloXVFww5NcSbaT9NLMYWb15B+r/v1VUVQMZrk8c9XapDitbH paoiSDF5yOudBYoT3vYs4cceGy45Bov0mUlbGF1iEQx/W27uEaiQHjT/iv8PIFfgjFQ5 4srF8fkAP8Vm2rlUEJWWm3t4k28jcj0OSB4htT5wHBgXaLQVFeCeuVWSO4oKEDUjxxXY wTnUssYBExpLVOiEfZVjevPC+TxxbGMOtcdZiabSNNLYOTbyQaiPUFQ+SThYpszQh/wj Kqkg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1673888483; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AHq+utAwv5X1E1yMe4NYEBKRfwC1AaS+wpycZPXGPNw=; b=qs4Uei4L8a1QI7JiIaaIOU6WXIYFPSCSLo6/nGl0mLf09aVnU3jNEjNdvhXSQlHsRE 4fiObltW7hfcaXVAR971DtT1qyF0UxaPHiqcWzKLTPYQjEVDO6Frg6OMHwt7xbXVItqM 73xsDAUIVHegMKldAUWJtHEOtQd+l50C+e7QpdltXpwzYbZ0wUlc7BI2K0qgITC98d3d Ap4+rGQKfuoFbcru2ZwhXSl1kyGukbC3Jz4QOLHbgPE3RFaqmWZGbNwXKKh5VxcKPlR7 9sck2sABwix1uk02DbYobpcx3r9gwWq2ag/GD99b5LXl+kdUmseevC+kJbpaukp9Mzeo Y24Q== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOejvVUYts2exEnhvWSurYgn7u6IQ==" Received: from nimes.localnet by smtp.strato.de (RZmta 48.6.2 AUTH) with ESMTPSA id I8f358z0GH1NOZL (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 16 Jan 2023 18:01:23 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org, Paul Eggert Cc: Khem Raj Subject: Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newer Date: Mon, 16 Jan 2023 18:01:22 +0100 Message-ID: <3174038.jMmpn3RHMN@nimes> In-Reply-To: <6427f898-83b5-abe2-afd3-a4dc9ecb7a09@cs.ucla.edu> References: <20230115012007.2175339-1-raj.khem@gmail.com> <6427f898-83b5-abe2-afd3-a4dc9ecb7a09@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.218; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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 Paul Eggert wrote: > 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. On Android (and probably some other platforms) I now see a compilation error: terminal-gcc -mandroid -D__ANDROID__ -std=gnu99 -DHAVE_CONFIG_H -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/com.spartacusrex.spartacuside/files/local/include -Wall -Wno-error -O2 -c -o test-stddef.o ../../gltests/test-stddef.c ../../gltests/test-stddef.c:23:22: error: stdalign.h: No such file or directory make[4]: *** [test-stddef.o] Error 1 This patch fixes it. It could already have been done on 2022-09-13, but is needed now that the 'alignasof' module is used instead of the old, deprecated 'stdalign' module. 2023-01-16 Bruno Haible stddef tests: Fix compilation error (regression 2023-01-15). * tests/test-stddef.c: Don't include . diff --git a/tests/test-stddef.c b/tests/test-stddef.c index 25ad00e490..1d674b3cea 100644 --- a/tests/test-stddef.c +++ b/tests/test-stddef.c @@ -20,7 +20,6 @@ #include #include -#include /* Check that appropriate types are defined. */ wchar_t a = 'c';