This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v8 6/8] nptl: Add abilist symbols for C11 threads



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]