Re: stdatomic.h: Do not define ATOMIC_VAR_INIT for C2x

2022-09-12 Thread Richard Biener via Gcc-patches
On Fri, Sep 9, 2022 at 10:41 PM Joseph Myers wrote: > > The macro ATOMIC_VAR_INIT, previously declared obsolete, > is removed completely in C2x; disable it for C2x in GCC's > implementation. (Although ATOMIC_* are reserved names for this > header, disabling the macro for C2x still seems appropri

stdatomic.h: Do not define ATOMIC_VAR_INIT for C2x

2022-09-09 Thread Joseph Myers
The macro ATOMIC_VAR_INIT, previously declared obsolete, is removed completely in C2x; disable it for C2x in GCC's implementation. (Although ATOMIC_* are reserved names for this header, disabling the macro for C2x still seems appropriate.) Bootstrapped with no regressions for x86_64-pc-linux-gnu