From: H.J. Lu Date: Wed, 19 Sep 2012 13:12:37 +0000 (-0700) Subject: Cast to uint64_t for 64-bit store X-Git-Tag: upstream/2.16.90~535 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae30640a32b8f4057ab32ec7a3f48f77c344b79e;p=platform%2Fupstream%2Fglibc.git Cast to uint64_t for 64-bit store --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 5d784a5..ebb9048 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2012-09-19 H.J. Lu + + * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for + 64-bit store. + (THREAD_SETMEM_NC): Likewise. + 2012-09-14 Jeff Law [BZ #14583] diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h index ab42708..65497cf 100644 --- a/nptl/sysdeps/i386/tls.h +++ b/nptl/sysdeps/i386/tls.h @@ -343,7 +343,7 @@ union user_desc_init \ asm volatile ("movl %%eax,%%gs:%P1\n\t" \ "movl %%edx,%%gs:%P2" : \ - : "A" (value), \ + : "A" ((uint64_t) (value)), \ "i" (offsetof (struct pthread, member)), \ "i" (offsetof (struct pthread, member) + 4)); \ }}) @@ -370,7 +370,7 @@ union user_desc_init \ asm volatile ("movl %%eax,%%gs:%P1(,%2,8)\n\t" \ "movl %%edx,%%gs:4+%P1(,%2,8)" : \ - : "A" (value), \ + : "A" ((uint64_t) (value)), \ "i" (offsetof (struct pthread, member)), \ "r" (idx)); \ }})