@@ -121,7 +121,7 @@ static inline _Unwind_Reason_Code continueUnwinding(struct _Unwind_Exception *ex
121
121
}
122
122
123
123
124
- extern " C" void __cxa_free_exception (void *thrown_exception);
124
+ extern " C" void __cxa_free_exception (void *thrown_exception) throw() ;
125
125
extern " C" void __cxa_free_dependent_exception (void *thrown_exception);
126
126
extern " C" void * __dynamic_cast (const void *sub,
127
127
const __class_type_info *src,
@@ -611,7 +611,7 @@ static void free_exception(char *e)
611
611
* emergency buffer if malloc() fails, and may block if there are no such
612
612
* buffers available.
613
613
*/
614
- extern " C" void *__cxa_allocate_exception (size_t thrown_size)
614
+ extern " C" void *__cxa_allocate_exception (size_t thrown_size) throw()
615
615
{
616
616
size_t size = thrown_size + sizeof (__cxa_exception);
617
617
char *buffer = alloc_or_die (size);
@@ -633,7 +633,7 @@ extern "C" void *__cxa_allocate_dependent_exception(void)
633
633
* In this implementation, it is also called by __cxa_end_catch() and during
634
634
* thread cleanup.
635
635
*/
636
- extern " C" void __cxa_free_exception (void *thrown_exception)
636
+ extern " C" void __cxa_free_exception (void *thrown_exception) throw()
637
637
{
638
638
__cxa_exception *ex = reinterpret_cast <__cxa_exception*>(thrown_exception) - 1 ;
639
639
// Free the object that was thrown, calling its destructor
@@ -794,7 +794,7 @@ static void throw_exception(__cxa_exception *ex)
794
794
}
795
795
796
796
extern " C" __cxa_exception *__cxa_init_primary_exception (
797
- void *object, std::type_info* tinfo, void (*dest)(void *)) {
797
+ void *object, std::type_info* tinfo, void (*dest)(void *)) throw() {
798
798
__cxa_exception *ex = reinterpret_cast <__cxa_exception*>(object) - 1 ;
799
799
800
800
ex->referenceCount = 0 ;
0 commit comments