Commit 58c11467 by Richard Henderson Committed by Richard Henderson

unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG to decide,…

unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG to decide, but __SIZEOF_LONG_LONG__.

        * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
        to decide, but __SIZEOF_LONG_LONG__.

From-SVN: r123352
parent 5b77de89
2007-03-29 Richard Henderson <rth@redhat.com>
* unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
to decide, but __SIZEOF_LONG_LONG__.
2007-03-29 Richard Henderson <rth@redhat.com>
* emutls.c (struct __emutls_array): New.
(emutls_destroy): Use it instead of casting element 0 from void*.
(__emutls_get_address): Likewise.
......
......@@ -247,16 +247,14 @@ extern void * _Unwind_FindEnclosingFunction (void *pc);
except when a unsigned long data type on the target machine is not
capable of storing a pointer. */
#if __SIZEOF_LONG__ < __SIZEOF_POINTER__
#ifdef HAVE_LONG_LONG
#if __SIZEOF_LONG__ >= __SIZEOF_POINTER__
typedef long _sleb128_t;
typedef unsigned long _uleb128_t;
#elif __SIZEOF_LONG_LONG__ >= __SIZEOF_POINTER__
typedef long long _sleb128_t;
typedef unsigned long long _uleb128_t;
#else
#error "long long data type is needed to define _sleb128_t"
#endif
#else
typedef long _sleb128_t;
typedef unsigned long _uleb128_t;
# error "What type shall we use for _sleb128_t?"
#endif
#ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment