This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Libffi: closures for x86_64
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Jan 2003 09:35:35 -0500
- Subject: Re: Libffi: closures for x86_64
- References: <200301271745.h0RHjNj03409@cuddles.cambridge.redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jan 27, 2003 at 05:45:23PM +0000, Andrew Haley wrote:
> + tramp = (unsigned short *) &closure->tramp[0];
> + tramp[0] = 0xbb49; /* mov <code>, %r11d */
^^^ comment typo
The instruction is mov <code>, %r11, not mov <code>, %r11d.
> + tramp[5] = 0xba49; /* mov <data>, %r10 */
> + tramp[10] = 0xff49; /* jmp *%r11 */
> + tramp[11] = 0x00e3;
> + *(void **) &tramp[1] = ffi_closure_UNIX64;
> + *(void **) &tramp[6] = closure;
And this is aliasing bug.
Jakub