[csw-maintainers] sparc assembly, gcc vs cc

Philip Brown phil at bolthole.com
Thu Apr 8 23:44:01 CEST 2010


On Thu, Apr 8, 2010 at 1:07 PM, Philip Brown <phil at bolthole.com> wrote:
> Sooo.. I found a problem with "libffi".
>  It contains the following evil, buried in the middle of a function call:
>
>  /* Flush the Icache.  FIXME: alignment isn't certain, assume 8 bytes */
>
>  asm volatile ("iflush %0" : : "r" (closure) : "memory");
>  asm volatile ("iflush %0" : : "r" (((char *) closure) + 8) : "memory");
>
>
> Does anyone have any idea how to convert this mess into something that
> will be Sun CC compatible?
>


found the answer mesself.


turns out, sun cc (12 or better) actually does support this sort of
thing.. but ONLY if you turn optimization on.   Even -xO1 will do.


More information about the maintainers mailing list