ToT glibc build problem with ToT GCC

Szabolcs Nagy Szabolcs.Nagy@arm.com
Tue Sep 3 11:19:00 GMT 2019


On 03/09/2019 11:53, Florian Weimer wrote:
> * Szabolcs Nagy:
> 
>> On 03/09/2019 11:12, Florian Weimer wrote:
>>> * Szabolcs Nagy:
>>>
>>>> On 30/08/2019 17:18, Florian Weimer wrote:
>>>>>
>>>>> localedef: Use initializer for flexible array member [BZ #24950]
>>>>>
>>>>
>>>> i would mention that you put the struct in .rodata,
>>>> that is a non-obvious change.
>>>
>>> Please see below.
>>>
>>>> i'm fine with using gcc extension for the initializer.
>>>> i think the union solution is a bit safer though.
>>>> either way, it would be nice to fix this build error.
>>>
>>> I don't think this is a GCC extension.  I believe it's part of C99.
>>
>> iso c has this example:
>>
>> http://port70.net/~nsz/c/c11/n1570.html#6.7.2.1p21
>>
>> so the initializer relies on a gcc extension.
> 
> Okay, I stand corrected.
> 
> What about the updated commit message I sent earlier?  Shall I push
> this?

i think the patch is ok as posted.

> 
> Thanks,
> Florian
> 



More information about the Libc-alpha mailing list