components/stdcxx/patches/038-ctype.cpp.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Mon, 18 Apr 2016 13:01:02 -0700
changeset 5797 432ac76de3b0
parent 402 94ae4d75524c
permissions -rw-r--r--
23078956 adjust the remainder of the userland components to use perl 5.22 22909079 resume testing in several perl modules 22909338 xml-parsers pkg manifests should be cleaned up once 5.12 threaded is gone 23051223 dbd-sqlite's clobber doesn't remove generated DBD-SQLite.license file 23057814 graphviz perl package depends on other obsolete perl packages 22991554 DBD-SQLite has an unlisted build dependency on library/perl-5/database et al

--- stdcxx-4.2.1/src/ctype.cpp	2008-04-24 20:25:19.000000000 -0400
+++ stdcxx-4.2.1/src/ctype.cpp	2009-07-29 15:03:16.000000000 -0400
@@ -626,13 +626,26 @@
         pfacet = new _STD::ctype_byname<char>(name, ref);
     }
     else {
+#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT)
+#  pragma pack(8)
+#  pragma align 8(f)
+#  pragma align 8(pf)
+#endif
         static union {
+#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT)
+            unsigned long long align_;
+            unsigned char data_ [sizeof (_STD::ctype<char>)];
+#else
             void *align_;
             char  data_ [sizeof (_STD::ctype<char>)];
+#endif
         } f;
         static __rw_facet* const pf =
             new (&f) _STD::ctype<char>(__rw_classic_tab, false, ref);
         pfacet = pf;
+#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT)
+#  pragma pack(0)
+#endif
     }
 
     // set the pointer to the facet id