This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libffi darwin structure implementation (PPC)


On Sat, Aug 30, 2003 at 06:50:41AM +0200, Andreas Tobler wrote:
> 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' ?

Um.... Andrew, unless I'm mistaken, that is _not_ the cast as lvalue
extension - unless you edited the quoted text?  (void**)&tramp[2] is
used as an rvalue; the result of applying * to it again is a legitimate
lvalue.

Not that it shouldn't be gotten rid of.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]