freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Bug on PowerPC: Illegal Intruction in FT_Get_Name_Index (


From: Behdad Esfahbod
Subject: Re: [ft-devel] Bug on PowerPC: Illegal Intruction in FT_Get_Name_Index (worksforme)
Date: Thu, 14 Apr 2005 07:53:15 -0400 (EDT)

On Wed, 13 Apr 2005, Werner LEMBERG wrote:

> > > Because the FreeType code does some tricks which fail if strict
> > > aliasing is active.  Fixing this is *not* trivial (and probably
> > > not worth the trouble).
> >
> > I may be quite wrong, but I think adding some casts to (void *)
> > do solve the problem.
>
> Please go ahead and provide patches!

Attached!  It was much easier than I thought.  Drops all 323
warnings for me.  The idea is that by casting to (void *),
compiler knows that it should turn off strict aliasing for this
item...

Would be cool too see whether this fixes the Solaris problem.

>     Werner

--behdad
http://behdad.org/

Attachment: freetype-strictaliasing.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]