[PATCH v8 6/8] nptl: Add abilist symbols for C11 threads
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Jul 18 20:02:00 GMT 2018
On 18/07/2018 14:40, Joseph Myers wrote:
> On Fri, 13 Jul 2018, Florian Weimer wrote:
>
>> I think ONCE_FLAG_INIT needs to be a compound literal, not an initializer, at
>> least that's how I read the standard (âwhich expands to a value that can be
>> used to initialize an objectâ).
>
> I think it has to be valid as a static initializer. Which means it can't
> be a compound literal, because standard C doesn't allow those in static
> initializers. (I read "value" as meaning "expansion of the macro" not
> "value of an object type".)
>
Right, we should not enforce the compiler to support compound literal
as a static initializer as GCC does as an extension. I will change
back to static initializer.
More information about the Libc-alpha
mailing list