Al-Qurtas-Islamic-bank-The-.../builds/compiler
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
..
ansi-cc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
bcc-dev.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
bcc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
emx.mk * builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also. 2003-06-13 07:38:22 +00:00
gcc-dev.mk * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
gcc.mk * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk 2005-05-23 21:33:02 +00:00
intelc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
unix-lcc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
visualage.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
visualc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
watcom.mk * builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also. 2003-06-13 07:38:22 +00:00
win-lcc.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00