stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r679610 - /stdcxx/branches/4.2.x/include/rw/_defs.h
Date Thu, 24 Jul 2008 23:15:34 GMT
Author: sebor
Date: Thu Jul 24 16:15:29 2008
New Revision: 679610

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

	STDCXX-997
	* include/rw/_defs.h [__SUNPRO_CC] (__rw_assert_fail): Declared
	with #pragma does_not_return for efficiency.

Modified:
    stdcxx/branches/4.2.x/include/rw/_defs.h

Modified: stdcxx/branches/4.2.x/include/rw/_defs.h
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_defs.h?rev=679610&r1=679609&r2=679610&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_defs.h (original)
+++ stdcxx/branches/4.2.x/include/rw/_defs.h Thu Jul 24 16:15:29 2008
@@ -1156,6 +1156,12 @@
 __rw_assert_fail (const char*, const char*, int, const char*)
     _RWSTD_ATTRIBUTE_NORETURN;
 
+
+#ifdef __SUNPRO_CC
+   // help Sun C++ optimizer generate better code
+#  pragma does_not_return (__rw_assert_fail)
+#endif   // __SUNPRO_CC
+
 }   // extern "C++"
 
 }   // namespace __rw



Mime
View raw message