123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- diff -Nur uClibc++-0.2.2.orig/include/unwind-cxx.h uClibc++-0.2.2/include/unwind-cxx.h
- --- uClibc++-0.2.2.orig/include/unwind-cxx.h 2007-06-04 00:51:12.000000000 +0200
- +++ uClibc++-0.2.2/include/unwind-cxx.h 2010-07-31 09:31:32.416120094 +0200
- @@ -1,175 +1,179 @@
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -#ifndef _UNWIND_CXX_H
- -#define _UNWIND_CXX_H 1
- -
- -
- -
- -#include <typeinfo>
- -#include <exception>
- -#include <cstddef>
- -#include "unwind.h"
- -
- -#pragma GCC visibility push(default)
- -
- -namespace __cxxabiv1
- -{
- -
- -
- -
- -
- -
- -struct __cxa_exception
- -{
- -
- - std::type_info *exceptionType;
- - void (*exceptionDestructor)(void *);
- -
- -
- -
- - std::unexpected_handler unexpectedHandler;
- - std::terminate_handler terminateHandler;
- -
- -
- - __cxa_exception *nextException;
- -
- -
- -
- - int handlerCount;
- -
- -
- -
- - int handlerSwitchValue;
- - const unsigned char *actionRecord;
- - const unsigned char *languageSpecificData;
- - _Unwind_Ptr catchTemp;
- - void *adjustedPtr;
- -
- -
- - _Unwind_Exception unwindHeader;
- -};
- -
- -
- -struct __cxa_eh_globals
- -{
- - __cxa_exception *caughtExceptions;
- - unsigned int uncaughtExceptions;
- -};
- -
- -
- -
- -
- -
- -
- -extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
- -extern "C" __cxa_eh_globals *__cxa_get_globals_fast () throw();
- -
- -
- -extern "C" void *__cxa_allocate_exception(std::size_t thrown_size) throw();
- -
- -
- -extern "C" void __cxa_free_exception(void *thrown_exception) throw();
- -
- -
- -extern "C" void __cxa_throw (void *thrown_exception,
- - std::type_info *tinfo,
- - void (*dest) (void *))
- - __attribute__((noreturn));
- -
- -
- -extern "C" void *__cxa_begin_catch (void *) throw();
- -extern "C" void __cxa_end_catch ();
- -extern "C" void __cxa_rethrow () __attribute__((noreturn));
- -
- -
- -extern "C" void __cxa_bad_cast ();
- -extern "C" void __cxa_bad_typeid ();
- -
- -
- -
- -
- -
- -
- -extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn));
- -
- -
- -
- -extern void __terminate(std::terminate_handler) __attribute__((noreturn));
- -extern void __unexpected(std::unexpected_handler) __attribute__((noreturn));
- -
- -
- -extern std::terminate_handler __terminate_handler;
- -extern std::unexpected_handler __unexpected_handler;
- -
- -
- -
- -
- -const _Unwind_Exception_Class __gxx_exception_class
- -= ((((((((_Unwind_Exception_Class) 'G'
- - << 8 | (_Unwind_Exception_Class) 'N')
- - << 8 | (_Unwind_Exception_Class) 'U')
- - << 8 | (_Unwind_Exception_Class) 'C')
- - << 8 | (_Unwind_Exception_Class) 'C')
- - << 8 | (_Unwind_Exception_Class) '+')
- - << 8 | (_Unwind_Exception_Class) '+')
- - << 8 | (_Unwind_Exception_Class) '\0');
- -
- -
- -extern "C" _Unwind_Reason_Code __gxx_personality_v0
- - (int, _Unwind_Action, _Unwind_Exception_Class,
- - struct _Unwind_Exception *, struct _Unwind_Context *);
- -
- -
- -extern "C" _Unwind_Reason_Code __gxx_personality_sj0
- - (int, _Unwind_Action, _Unwind_Exception_Class,
- - struct _Unwind_Exception *, struct _Unwind_Context *);
- -
- -
- -static inline __cxa_exception *
- -__get_exception_header_from_obj (void *ptr)
- -{
- - return reinterpret_cast<__cxa_exception *>(ptr) - 1;
- -}
- -
- -
- -static inline __cxa_exception *
- -__get_exception_header_from_ue (_Unwind_Exception *exc)
- -{
- - return reinterpret_cast<__cxa_exception *>(exc + 1) - 1;
- -}
- -
- -}
- -
- -#pragma GCC visibility pop
- -
- -#endif
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +#ifndef _UNWIND_CXX_H
- +#define _UNWIND_CXX_H 1
- +
- +
- +
- +#include <typeinfo>
- +#include <exception>
- +#include <cstddef>
- +#include "unwind.h"
- +
- +#pragma GCC visibility push(default)
- +
- +namespace __cxxabiv1
- +{
- +
- +
- +
- +
- +
- +struct __cxa_exception
- +{
- +
- + std::type_info *exceptionType;
- + void (*exceptionDestructor)(void *);
- +
- +
- +
- + std::unexpected_handler unexpectedHandler;
- + std::terminate_handler terminateHandler;
- +
- +
- + __cxa_exception *nextException;
- +
- +
- +
- + int handlerCount;
- +
- +
- +
- + int handlerSwitchValue;
- + const unsigned char *actionRecord;
- + const unsigned char *languageSpecificData;
- + _Unwind_Ptr catchTemp;
- + void *adjustedPtr;
- +
- +
- + _Unwind_Exception unwindHeader;
- +};
- +
- +
- +struct __cxa_eh_globals
- +{
- + __cxa_exception *caughtExceptions;
- + unsigned int uncaughtExceptions;
- +};
- +
- +
- +
- +
- +
- +
- +extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
- +extern "C" __cxa_eh_globals *__cxa_get_globals_fast () throw();
- +
- +
- +extern "C" void *__cxa_allocate_exception(std::size_t thrown_size) throw();
- +
- +
- +extern "C" void __cxa_free_exception(void *thrown_exception) throw();
- +
- +
- +extern "C" void __cxa_throw (void *thrown_exception,
- + std::type_info *tinfo,
- + void (*dest) (void *))
- + __attribute__((noreturn));
- +
- +
- +extern "C" void *__cxa_begin_catch (void *) throw();
- +extern "C" void __cxa_end_catch ();
- +extern "C" void __cxa_rethrow () __attribute__((noreturn));
- +
- +
- +extern "C" void __cxa_bad_cast ();
- +extern "C" void __cxa_bad_typeid ();
- +
- +
- +
- +
- +
- +
- +extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn));
- +
- +
- +
- +extern void __terminate(std::terminate_handler) __attribute__((noreturn));
- +extern void __unexpected(std::unexpected_handler) __attribute__((noreturn));
- +
- +
- +extern std::terminate_handler __terminate_handler;
- +extern std::unexpected_handler __unexpected_handler;
- +
- +
- +
- +
- +const _Unwind_Exception_Class __gxx_exception_class
- +#ifndef __ARM_EABI_UNWINDER__
- += ((((((((_Unwind_Exception_Class) 'G'
- + << 8 | (_Unwind_Exception_Class) 'N')
- + << 8 | (_Unwind_Exception_Class) 'U')
- + << 8 | (_Unwind_Exception_Class) 'C')
- + << 8 | (_Unwind_Exception_Class) 'C')
- + << 8 | (_Unwind_Exception_Class) '+')
- + << 8 | (_Unwind_Exception_Class) '+')
- + << 8 | (_Unwind_Exception_Class) '\0');
- +#else
- += "GNUC++";
- +#endif
- +
- +
- +extern "C" _Unwind_Reason_Code __gxx_personality_v0
- + (int, _Unwind_Action, _Unwind_Exception_Class,
- + struct _Unwind_Exception *, struct _Unwind_Context *);
- +
- +
- +extern "C" _Unwind_Reason_Code __gxx_personality_sj0
- + (int, _Unwind_Action, _Unwind_Exception_Class,
- + struct _Unwind_Exception *, struct _Unwind_Context *);
- +
- +
- +static inline __cxa_exception *
- +__get_exception_header_from_obj (void *ptr)
- +{
- + return reinterpret_cast<__cxa_exception *>(ptr) - 1;
- +}
- +
- +
- +static inline __cxa_exception *
- +__get_exception_header_from_ue (_Unwind_Exception *exc)
- +{
- + return reinterpret_cast<__cxa_exception *>(exc + 1) - 1;
- +}
- +
- +}
- +
- +#pragma GCC visibility pop
- +
- +#endif
|