From: Paul Eggert Date: Sun, 20 Sep 2020 22:42:43 +0000 (-0700) Subject: test-stdalign: test Oracle Studio better X-Git-Tag: v1.0~3612 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e603220f217a101ddfcad645e60949c691ca55ac;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index a43c32eb8d..a7a0ce8403 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-09-20 Paul Eggert + 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 9d7722fe32..0f76bc90e6 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{} 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 6451168358..57e4c86e54 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;