ToT glibc build problem with ToT GCC
Joseph Myers
joseph@codesourcery.com
Fri Aug 30 16:42:00 GMT 2019
On Fri, 30 Aug 2019, Martin Sebor wrote:
> Just as a heads up, there have been questions in WG14 about flexible
> array members in recent years. Some of them were raised by people
> working on compilers who didn't have the same understanding of
> the requirements, and as a result, whose compilers behaved
> differently. Since this is a bit of a murky area for some it's
> possible that some of these union/flexarray/zero-length array
> tricks might tickle their bugs.
Causing trouble for compilers with a different understanding seems rather
more relevant for glibc's installed headers, or code shared with gnulib
that might thus be compiled with lots of different compilers, than for
code in glibc itself (or glibc's installed programs, in this case).
Using an initializer for a flexible array member is a GNU extension, not
part of ISO C. (It *is* an extension that's been known to have GCC bugs
in the past, because it means objects with an initializer whose size is
larger than the size of their type and that can cause confusion in the
compiler.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list