]> Savannah Git Hosting - gnulib.git/commitdiff
test-stdalign: test Oracle Studio better
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Sep 2020 22:42:43 +0000 (15:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Sep 2020 22:48:44 +0000 (15:48 -0700)
* doc/posix-headers/stdalign.texi (stdalign.h):
* tests/test-stdalign.c (main):
Sun Studio Bug #2125432 seems to be fixed.

ChangeLog
doc/posix-headers/stdalign.texi
tests/test-stdalign.c

index a43c32eb8d9ed4a4704b0fda734bae20180b22c7..a7a0ce84030d72d236d5986b0eff84b3687d22c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2020-09-20  Paul Eggert  <eggert@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.
index 9d7722fe32a9eeb67b5c7fdb324ccc821a54dc46..0f76bc90e6d5251d3d24b61c3660e914147c4b00 100644 (file)
@@ -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.
index 64511683580b5ac8f5fa6f32586d0132cdf8ce27..57e4c86e54a1ea5f62aaa64e1d3e67af2061c155 100644 (file)
@@ -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;