freetype2/builds/unix
Werner Lemberg 52c21bb383 * 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
..
.cvsignore
configure.ac * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
detect.mk * configure: Accept makepp also. 2004-04-13 08:35:05 +00:00
freetype-config.in * builds/unix/freetype-config.in: Add new flag `--ftversion' to 2005-02-10 08:18:27 +00:00
freetype2.in
freetype2.m4
ft-munmap.m4
ft2unix.h
ftconfig.in * builds/unix/ftconfig.in, builds/vms/ftconfig.h: Define 2004-04-16 09:56:30 +00:00
ftsystem.c * builds/unix/ftsystem.c (FT_Stream_Open): Add proper cast for 2004-12-28 23:08:51 +00:00
install-sh * builds/unix/ltmain.sh: Regenerated with `libtoolize --force 2005-02-20 08:22:30 +00:00
install.mk * builds/unix/install.mk (install): Use $(OBJ_BUILD) for ftconfig.h. 2004-12-06 08:42:41 +00:00
mkinstalldirs * builds/unix/ltmain.sh: Regenerated with `libtoolize --force 2005-02-20 08:22:30 +00:00
unix-cc.in
unix-def.in * configure: Accept makepp also. 2004-04-13 08:35:05 +00:00
unix-dev.mk
unix-lcc.mk
unix.mk * configure: Accept makepp also. 2004-04-13 08:35:05 +00:00
unixddef.mk