compiler standards (and/or min gcc version) supported with installed headers ?
Joseph S. Myers
joseph@codesourcery.com
Wed Jan 2 15:05:00 GMT 2013
On Wed, 2 Jan 2013, Andreas Jaeger wrote:
> The baseline is needed for adding new code so that we all agree what might
> need special handling and what not.
Well - there are plenty of cases that don't have fallbacks for older or
non-GCC compilers, even when they would be easy. E.g. complex.h only
defines the C11 CMPLX macros for GCC >= 4.7, though for older GCC you
could do an approximation (not usable in static initializers) with a
temporary variable and __real__ and __imag__ assignments. Or uchar.h not
defining char16_t and char32_t for GCC versions before 4.4 (when the
built-in __CHAR16_TYPE__ and __CHAR32_TYPE__ macros were added), or for
non-GCC, although the types are required by C11 to be the same as
uint_least16_t and uint_least32_t, so in fact glibc always has the
information to define them correctly.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list