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: compiler standards (and/or min gcc version) supported withinstalled headers ?


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


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