This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] libffi darwin structure implementation (PPC)
- From: Andrew Haley <aph at redhat dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Geoff Keating <geoffk at geoffk dot org>, David Edelsohn <dje at watson dot ibm dot com>, Anthony Green <green at redhat dot com>
- Date: Sat, 30 Aug 2003 11:09:53 +0100
- Subject: Re: [patch] libffi darwin structure implementation (PPC)
- References: <200308291910.h7TJAGQ20884@tin.geop.uc.edu><3F502D21.10601@pop.agri.ch>
Andreas Tobler writes:
> Andrew Pinski wrote:
>
>
> > Also change the following so they do not use cats as lvalue GCC
> > extension as we really want to get rid of it:
> >
> > + *(void **) &tramp[2] = (void *)ffi_closure_ASM; /* function */
> > + *(void **) &tramp[3] = (void *)closure; /* context */
>
> Ok, have to figure out what you mean exactly. I guess you mean 'casts' ?
I think he means
tramp[3] = (unsigned int) ffi_closure_ASM; /* function */
Andrew.