[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] stdalign: port better to MSVC and to Sun C 5.11
From: |
Bruno Haible |
Subject: |
Re: [PATCH] stdalign: port better to MSVC and to Sun C 5.11 |
Date: |
Sun, 6 Nov 2011 23:59:06 +0100 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Paul Eggert wrote:
> ... please push.
>
> I didn't get a URL yet, but did get a Sun review ID that I
> just now added to the documentation.
Thanks. I pushed this:
--- a/tests/test-stdalign.c
+++ b/tests/test-stdalign.c
@@ -80,6 +80,11 @@ CHECK_STATIC (struct4);
int
main ()
{
+#if defined __SUNPRO_C
+ /* Avoid a test failure due to Sun Studio Developer Bug Report #2125432. */
+ fputs ("Skipping test: known Sun C compiler bug\n", stderr);
+ return 77;
+#else
CHECK_ALIGNED (static_char_alignas);
CHECK_ALIGNED (static_char_Alignas);
CHECK_ALIGNED (static_short_alignas);
@@ -88,10 +93,10 @@ main ()
CHECK_ALIGNED (static_int_Alignas);
CHECK_ALIGNED (static_long_alignas);
CHECK_ALIGNED (static_long_Alignas);
-#ifdef INT64_MAX
+# ifdef INT64_MAX
CHECK_ALIGNED (static_int64_t_alignas);
CHECK_ALIGNED (static_int64_t_Alignas);
-#endif
+# endif
CHECK_ALIGNED (static_float_alignas);
CHECK_ALIGNED (static_float_Alignas);
CHECK_ALIGNED (static_double_alignas);
@@ -107,4 +112,5 @@ main ()
CHECK_ALIGNED (static_struct4_alignas);
CHECK_ALIGNED (static_struct4_Alignas);
return 0;
+#endif
}
--
In memoriam Louis Philippe d'Orléans
<http://en.wikipedia.org/wiki/Louis_Philippe_II,_Duke_of_Orléans>