PATCH: Use "unsigned long long int" in x86-64 __makecontext

H.J. Lu hjl.tools@gmail.com
Fri Mar 16 20:01:00 GMT 2012


On Fri, Mar 16, 2012 at 11:21 AM, Roland McGrath <roland@hack.frob.com> wrote:
> Why not use greg_t?  If there are cases where you explicitly need to avoid
> sign-extension, you can use (greg_t) (uintptr_t).


Here is the updated patch.  OK to install?

Thanks.

-- 
H.J.
---

2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext): Use
	greg_t on sp.  Use unsigned int on idx_uc_link.  Cast adresses to
	uintptr_t first.  Replace "long int" with "long long int" on va_arg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-x32-makecontext.patch
Type: text/x-patch
Size: 3160 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120316/99f63ca3/attachment.bin>


More information about the Libc-alpha mailing list