From: Paul Eggert <eggert@cs.ucla.edu>
To: bug-gnulib@gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: [PATCH] test-stdalign: test Oracle Studio better
Date: Sun, 20 Sep 2020 16:16:35 -0700 [thread overview]
Message-ID: <20200920231635.2786-1-eggert@cs.ucla.edu> (raw)
* doc/posix-headers/stdalign.texi (stdalign.h):
* tests/test-stdalign.c (main):
Sun Studio Bug #2125432 seems to be fixed.
---
ChangeLog | 5 +++++
| 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 <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.
--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
reply other threads:[~2020-09-20 23:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200920231635.2786-1-eggert@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).