bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newe


From: Khem Raj
Subject: Re: [PATCH v2] Define alignof_slot using _Alignof when using C11 or newer
Date: Sun, 15 Jan 2023 15:05:33 -0800



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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]