* doc/posix-headers/stdalign.texi (stdalign.h): * tests/test-stdalign.c (main): Sun Studio Bug #2125432 seems to be fixed. --- ChangeLog | 5 +++++ doc/posix-headers/stdalign.texi | 8 ++++---- tests/test-stdalign.c | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog index a43c32eb8..a7a0ce840 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-09-20 Paul Eggert <egg...@cs.ucla.edu> + test-stdalign: test Oracle Studio better + * doc/posix-headers/stdalign.texi (stdalign.h): + * tests/test-stdalign.c (main): + Sun Studio Bug #2125432 seems to be fixed. + c-stack: output diagnostic in single 'write' * lib/c-stack.c (die): In the typical case, use just one 'write' syscall to output the diagnostic, as this lessens interleaving. diff --git a/doc/posix-headers/stdalign.texi b/doc/posix-headers/stdalign.texi index 9d7722fe3..0f76bc90e 100644 --- a/doc/posix-headers/stdalign.texi +++ b/doc/posix-headers/stdalign.texi @@ -53,12 +53,12 @@ Some compilers require the operand of @code{_Alignas}/@code{alignas} to be a single integer constant, not an expression: MSVC 7.0 through at least 10.0. @item -The Sun C 5.11 compiler sometimes mishandles the alignment of multiple +The Sun C 5.13 compiler sometimes mishandles the alignment of multiple external variables that are declared close together with -@code{_Alignas}/@code{alignas}. This compiler bug causes the Gnulib -module @code{stdalign-tests} to fail. The Sun Studio Developer Bug +@code{_Alignas}/@code{alignas}. The Sun Studio Developer Bug Report Review Team assigned the internal review ID 2125432 (dated -2011-11-01) to this issue. +2011-11-01) to this issue. The bug appears to be fixed in Sun C 5.15, +also known as Oracle Developer Studio 12.6. @item @code{<stdalign.h>} must be #included before @code{_Alignas} and @code{_Alignof} can be used. diff --git a/tests/test-stdalign.c b/tests/test-stdalign.c index 645116835..57e4c86e5 100644 --- a/tests/test-stdalign.c +++ b/tests/test-stdalign.c @@ -80,7 +80,7 @@ CHECK_STATIC (struct4); int main () { -#if defined __SUNPRO_C +#if defined __SUNPRO_C && __SUNPRO_C < 0x5150 /* Avoid a test failure due to Sun Studio Developer Bug Report #2125432. */ fputs ("Skipping test: known Sun C compiler bug\n", stderr); return 77; -- 2.17.1