This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add __auto_type C extension, use it in <stdatomic.h>
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Basile Starynkevitch <basile at starynkevitch dot net>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Nov 2013 20:56:22 +0000
- Subject: Re: Add __auto_type C extension, use it in <stdatomic.h>
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1311130038460 dot 6467 at digraph dot polyomino dot org dot uk> <CAFiYyc3F7m6KkJbTf3fXtKMhF4TMbpiiJSYh6tdbtNs6t6EwrA at mail dot gmail dot com> <1384375413 dot 25502 dot 10 dot camel at glinka dot lesours>
On Wed, 13 Nov 2013, Basile Starynkevitch wrote:
> I have no idea, but does anyone knows if other free compilers (notably
> Clang/LLVM) are adding a similar feature?
I looked at the list of Clang language extensions before adding this one
and didn't see mention of anything similar as a C language extension.
(Clang uses a different set of built-in functions for C11 atomics, so it's
possible the motivation from <stdatomic.h> doesn't apply there.)
> And I also like that feature, but it should be documented outside of the
> support of <stdatomic.h> since it is genuinely useful by itself (e.g. as
> an alternative to typeof).
The patch includes documentation in extend.texi.
--
Joseph S. Myers
joseph@codesourcery.com