stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r679241 - /stdcxx/branches/4.2.x/include/bitset
Date Thu, 24 Jul 2008 00:12:21 GMT
Author: sebor
Date: Wed Jul 23 17:12:20 2008
New Revision: 679241

URL: http://svn.apache.org/viewvc?rev=679241&view=rev
Log:
2008-07-23  Martin Sebor  <sebor@roguewave.com>

	STDCXX-997
	* include/bitset [__SUNPRO_CC] (__rw_bitset, __rw_bit_count,
	__rw_shl, __rw_shr): Used #pragma no_side_effects to help the
	optimizer generate better code.

Modified:
    stdcxx/branches/4.2.x/include/bitset

Modified: stdcxx/branches/4.2.x/include/bitset
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/bitset?rev=679241&r1=679240&r2=679241&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/bitset (original)
+++ stdcxx/branches/4.2.x/include/bitset Wed Jul 23 17:12:20 2008
@@ -58,6 +58,10 @@
              _RWSTD_SIZE_T, _RWSTD_SIZE_T,
              const char*, const char*);
 
+#ifdef __SUNPRO_CC
+#  pragma no_side_effects (__rw_bitset)
+#endif   // Sun C++
+
 #ifndef _RWSTD_NO_WCHAR_T
 
 _RWSTD_SPECIALIZED_FUNCTION
@@ -68,6 +72,9 @@
              _RWSTD_SIZE_T, _RWSTD_SIZE_T,
              const char*, const char*);
 
+#  ifdef __SUNPRO_CC
+#    pragma no_side_effects (__rw_bitset)
+#  endif   // Sun C++
 #endif   // _RWSTD_NO_WCHAR_T
 
 // helper, implements bitset::count()
@@ -81,6 +88,10 @@
 _RWSTD_EXPORT void
 __rw_shr (unsigned long*, _RWSTD_SIZE_T, _RWSTD_SIZE_T) _THROWS (());
 
+#ifdef __SUNPRO_CC
+#  pragma no_side_effects (__rw_bit_count, __rw_shl, __rw_shr)
+#endif   // Sun C++
+
 }   // namespace __rw
 
 



Mime
View raw message