equal
deleted
inserted
replaced
|
1 --- stdcxx-4.2.1/src/ios.cpp 2008-04-24 20:25:19.000000000 -0400 |
|
2 +++ stdcxx-4.2.1/src/ios.cpp 2009-07-29 17:22:37.000000000 -0400 |
|
3 @@ -42,9 +42,18 @@ |
|
4 |
|
5 _RWSTD_NAMESPACE (__rw) { |
|
6 |
|
7 +#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT) |
|
8 +# pragma align 8(__rw_std_streams) |
|
9 +# pragma pack(8) |
|
10 +#endif |
|
11 + |
|
12 // array of pointers to the 8 standard iostream objects |
|
13 _RWSTD_EXPORT const void* __rw_std_streams [8]; |
|
14 |
|
15 +#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT) |
|
16 +# pragma pack(0) |
|
17 +#endif |
|
18 + |
|
19 } // namespace __rw |
|
20 |
|
21 |
|
22 @@ -65,6 +74,10 @@ |
|
23 |
|
24 ios_base::~ios_base() |
|
25 { |
|
26 +#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT) |
|
27 +# pragma pack(8) |
|
28 +# pragma align 8(U) |
|
29 +#endif |
|
30 // verify that _C_usr_data is a POD (i.e., has no user-defined ctor) |
|
31 // necessary in order for the C_std_usr_data array defined above to |
|
32 // not be overwritten during dynamic initialization |
|
33 @@ -72,6 +85,10 @@ |
|
34 ios_base::_C_usr_data dummy; |
|
35 }; |
|
36 |
|
37 +#if defined(_RWSTD_STRICT_SPARCV8_MUTEX_ALIGNMENT) |
|
38 +# pragma pack(0) |
|
39 +#endif |
|
40 + |
|
41 // MT guard or reentrancy not necessary in a dtor |
|
42 |
|
43 if (_C_usr) { |