5 ms·
I wonder why there is no c11status page for GCC. They already added support for many things to GCC 4.6/4.7. http://gcc.gnu.org/gcc-4.7/changes.html http://gcc.
by fafner 14y ago
I wonder why there is no c11status page for GCC. They already added support for many things to GCC 4.6/4.7.
http://gcc.gnu.org/gcc-4.7/changes.html http://gcc.gnu.org/gcc-4.7/changes.html
> There is support for some more features from the C11 revision of the ISO C standard. GCC now accepts the options -std=c11 and -std=gnu11, in addition to the previous -std=c1x and -std=gnu1x.
> * Unicode strings (previously supported only with options such as -std=gnu11, now supported with -std=c11), and the predefined macros __STDC_UTF_16__ and __STDC_UTF_32__.
> * Nonreturning functions (_Noreturn and <stdnoreturn.h>).
> * Alignment support (_Alignas, _Alignof, max_align_t, <stdalign.h>).
> * A built-in function __builtin_complex is provided to support C library implementation of the CMPLX family of macros.
http://gcc.gnu.org/gcc-4.6/changes.html http://gcc.gnu.org/gcc-4.6/changes.html
> There is now experimental support for some features from the upcoming C1X revision of the ISO C standard. This support may be selected with -std=c1x, or -std=gnu1x for C1X with GNU extensions. Note that this support is experimental and may change incompatibly in future releases for consistency with changes to the C1X standard draft. The following features are newly supported as described in the N1539 draft of C1X (with changes agreed at the March 2011 WG14 meeting); some other features were already supported with no compiler changes being needed, or have some support but not in full accord with N1539 (as amended).
> * Static assertions (_Static_assert keyword)
> * Typedef redefinition
> * New macros in <float.h>
> * Anonymous structures and unions
and glibc added support http://sourceware.org/ml/libc-alpha/2012-06/msg00807.html http://sourceware.org/ml/libc-alpha/2012-06/msg00807.html
> * ISO C11 support:
>
> + define static_assert
>
> + do not declare gets
>
> + declare at_quick_exit and quick_exit also for ISO C11
>
> + aligned_alloc. NB: The code is deliberately allows the size parameter
> to not be a multiple of the alignment. This is a moronic requirement
> in the standard but it is only a requirement on the caller, not the
> implementation.
>
> + timespec_get added
>
> + uchar.h support added
>
> + CMPLX, CMPLXF, CMPLXL added
>
> Implemented by Ulrich Drepper.
But I don't know what's still missing and I doubt that glibc will implement the range check library (Annex K).