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 <[EMAIL PROTECTED]>
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