eh_personality.cc: Wrap extern C function definitions in namespace __cxxabiv1.

* libsupc++/eh_personality.cc: Wrap extern C function
        definitions in namespace __cxxabiv1.

From-SVN: r115652
This commit is contained in:
Jason Merrill 2006-07-21 17:06:19 -04:00 committed by Jason Merrill
parent bd741f34c9
commit f325272c07
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-07-21 Jason Merrill <jason@redhat.com>
* libsupc++/eh_personality.cc: Wrap extern "C" function
definitions in namespace __cxxabiv1.
2006-07-21 David Daney <ddaney@avtrex.com> 2006-07-21 David Daney <ddaney@avtrex.com>
PR libgcj/28426 PR libgcj/28426

View File

@ -326,6 +326,9 @@ empty_exception_spec (lsda_header_info *info, _Unwind_Sword filter_value)
return tmp == 0; return tmp == 0;
} }
namespace __cxxabiv1
{
// Using a different personality function name causes link failures // Using a different personality function name causes link failures
// when trying to mix code using different exception handling models. // when trying to mix code using different exception handling models.
#ifdef _GLIBCXX_SJLJ_EXCEPTIONS #ifdef _GLIBCXX_SJLJ_EXCEPTIONS
@ -748,3 +751,5 @@ __cxa_call_unexpected (void *exc_obj_in)
} }
} }
#endif #endif
} // namespace __cxxabiv1