* doc/posix-headers/stdalign.texi: Document this. * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports __attribute__ ((__aligned__ (...))). --- ChangeLog | 7 +++++++ doc/posix-headers/stdalign.texi | 2 +- lib/stdalign.in.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 584df59..e71db09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-10-25 Paul Eggert <egg...@cs.ucla.edu> + + stdalign: port to Sun C 5.9 + * doc/posix-headers/stdalign.texi: Document this. + * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports + __attribute__ ((__aligned__ (...))). + 2015-10-20 Paul Eggert <egg...@cs.ucla.edu> time_rz: fix comment about tzalloc diff --git a/doc/posix-headers/stdalign.texi b/doc/posix-headers/stdalign.texi index d8a9bee..f795306 100644 --- a/doc/posix-headers/stdalign.texi +++ b/doc/posix-headers/stdalign.texi @@ -38,7 +38,7 @@ member. The Gnulib substitute does not support this extension. @code{_Alignas} and @code{alignas} are not always supported; on platforms lacking support, the macro @code{__alignas_is_defined} is not defined. -Supported compilers include GCC, IBM C, Sun C 5.11 and later, +Supported compilers include GCC, IBM C, Sun C 5.9 and later, and MSVC 7.0 and later. @item Some compilers do not support alignment via diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h index 227eaf3..f4711d2 100644 --- a/lib/stdalign.in.h +++ b/lib/stdalign.in.h @@ -104,7 +104,7 @@ ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ : __GNUC__) \ || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \ - || __ICC || 0x5110 <= __SUNPRO_C) + || __ICC || 0x590 <= __SUNPRO_C) # define _Alignas(a) __attribute__ ((__aligned__ (a))) # elif 1300 <= _MSC_VER # define _Alignas(a) __declspec (align (a)) -- 2.1.0