From 956fa543b16d81a30ffc0656f52337fd1e9c70f6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 25 Oct 2015 01:10:47 -0700 Subject: [PATCH] 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__ (...))). --- 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 584df59efc..e71db09dad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-10-25 Paul Eggert + + 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 time_rz: fix comment about tzalloc diff --git a/doc/posix-headers/stdalign.texi b/doc/posix-headers/stdalign.texi index d8a9beeafd..f7953065b8 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 227eaf3981..f4711d2d84 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.39.5