freetype/builds
Werner Lemberg 92aa527a1c * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk
(CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove
-fno-strict-aliasing.


Say you have `(Foo*)x' and want to assign, pass, or return it as
`(Bar*)'.  If you simply say `x' or `(Bar*)x', then the C compiler
would warn you that type casting incompatible pointer types breaks
strict-aliasing.  The solution is to cast to `(void*)' instead which
is the generic pointer type, so the compiler knows that it should
make no strict-aliasing assumption on `x'.  But the problem with
`(void*)x' is that seems like in C++, unlike C, `void*' is not a
generic pointer type and assigning `void*' to `Bar*' without a cast
causes an error.  The solution is to cast to `Bar*' too, with
`(Bar*)(void*)x' as the result -- this is what the patch does.

* include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP),
include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove
cast on lvalue, use a temporary pointer instead.
Cast temporarily to (void*) to not break strict aliasing.

* include/freetype/internal/ftmemory.h (FT_MEM_ALLOC,
FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE),
src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*)
to not break strict aliasing.

* src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information.

* builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing.

* src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c --
it is currently loaded from ttsbit.c.


Other formatting.
2005-05-23 21:33:02 +00:00
..
amiga * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
ansi Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
atari Initial revision 2003-12-16 06:15:24 +00:00
beos Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
compiler * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
dos Minor fixes. 2004-11-23 21:38:16 +00:00
mac * src/base/ftglyph (FT_Glyph_To_Bitmap): Remove compiler warning. 2001-12-16 08:17:33 +00:00
os2 Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
unix * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
vms * builds/unix/ftconfig.in, builds/vms/ftconfig.h: Define 2004-04-16 09:56:30 +00:00
win32 * builds/win32/visualc/freetype.vcproj: Updated. 2005-05-17 20:35:23 +00:00
detect.mk * builds/detect.mk: Undo change from 2004-11-20. 2004-11-23 09:17:16 +00:00
freetype.mk * src/base/ftstream.c (FT_Stream_Close): Don't reset stream->close 2004-08-11 05:25:37 +00:00
link_dos.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
link_std.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
modules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
newline * include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c, 2001-05-11 14:25:57 +00:00
toplevel.mk * builds/toplevel.mk (distclean): Remove `builds/unix/freetype2.pc'. 2003-09-12 19:38:13 +00:00