ToT glibc build problem with ToT GCC
Andreas Schwab
schwab@suse.de
Tue Sep 3 10:40:00 GMT 2019
On Sep 03 2019, Szabolcs Nagy <Szabolcs.Nagy@arm.com> wrote:
> 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.
Which is documented in (gcc) Zero Length.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list