http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59820

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu.org,
                   |                            |ubizjak at gmail dot com

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
You should use this:

--cut here--
# define TLS_LD(x)                            \
  ({ void *__result;                            \
    register void *__gp asm ("$29");                    \
    asm ("lda %0, " #x "(%1) !tlsldm" : "=r" (__result) : "r" (__gp));    \
    __result = __tls_get_addr (__result);                \
    asm ("lda %0, " #x "(%0) !dtprel" : "+r" (__result));        \
    __result; })
--cut here--

Adding rth to CC.

Reply via email to