Implement C1X _Alignas, _Alignof, max_align_t, stdalign.h

Jonathan Wakely jwakely.gcc@gmail.com
Sat Dec 3 15:41:00 GMT 2011


patch ping ...

On 7 November 2011 09:58, Jonathan Wakely wrote:
>
> And then this adjusts <stdalign.h> and <stdbool.h> for C++11 conformance.
>
> C++11 requires stdbool.h so providing it is not a GCC extension, but
> defining _Bool is. I don't see the point of defining bool, true and
> false as macros in C++ and it's explicitly forbidden by C++11.
> Personally I'd prefer if _Bool was a typedef rather than a macro, but
> I haven't changed that.
>
>
> gcc/ChangeLog:
>        * ginclude/stdalign.h (__alignas_is_defined, __alignof_is_defined):
>        Define for C++.
>        * ginclude/stdbool.h (bool, true, false): Do not define for C++.
>
> libstdc++-v3/ChangeLog:
>        * testsuite/18_support/headers/cstdalign/macros.cc: New.
>        * testsuite/18_support/headers/cstdbool/macros.cc: New.
>
>
> Tested x86_64-linux, OK for trunk?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cstd-macros.patch
Type: text/x-patch
Size: 3964 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111203/1d9886ce/attachment.bin>


More information about the Gcc-patches mailing list