[Bug c/59820] alpha: incorrect optimisation with -mcpu=ev4 and -O2

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 15 22:35:00 GMT 2014


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.


More information about the Gcc-bugs mailing list