From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8FAB51F4B4 for ; Sun, 20 Sep 2020 23:16:52 +0000 (UTC) Received: from localhost ([::1]:35056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK8Zf-0000oo-Oq for normalperson@yhbt.net; Sun, 20 Sep 2020 19:16:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK8ZX-0000oX-VP for bug-gnulib@gnu.org; Sun, 20 Sep 2020 19:16:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK8ZV-0006F3-32 for bug-gnulib@gnu.org; Sun, 20 Sep 2020 19:16:43 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2B6221600EB for ; Sun, 20 Sep 2020 16:16:40 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0kfIpRXczJFj; Sun, 20 Sep 2020 16:16:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 59253160066; Sun, 20 Sep 2020 16:16:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZXeSgZC6ICWw; Sun, 20 Sep 2020 16:16:39 -0700 (PDT) Received: from day.example.com (cpe-75-82-69-226.socal.res.rr.com [75.82.69.226]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 328C81600DB; Sun, 20 Sep 2020 16:16:39 -0700 (PDT) From: Paul Eggert To: bug-gnulib@gnu.org Subject: [PATCH] test-stdalign: test Oracle Studio better Date: Sun, 20 Sep 2020 16:16:35 -0700 Message-Id: <20200920231635.2786-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.17.1 Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 19:15:39 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * 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 + 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{} 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