This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Cast to _Unwind_Exception_Class when setting exc.exception_class
"H.J. Lu" <hjl.tools@gmail.com> writes:
> diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h
> index ab42708..38f439b 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), \
Since it's a macro parameter it should be put in parens.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."