[gs-cvs] rev 7671 - trunk/gs/src
giles at ghostscript.com
giles at ghostscript.com
Fri Feb 2 12:29:28 PST 2007
Author: giles
Date: 2007-02-02 12:29:28 -0800 (Fri, 02 Feb 2007)
New Revision: 7671
Modified:
trunk/gs/src/configure.ac
Log:
Turn off the strict aliasing warnings in the autoconf gcc build.
Details:
This is slightly dangerous because it can flag real problems the
optimizer will trip over. However, Ghostscript's method of implementing
inheritance through macro expansion in structure definitions generates
hundreds of (not problematic) warnings because the compiler doesn't
actually trace through to verify that the referenced members are at the
same offset.
We cannot fix this easily without making the code much more convoluted,
so in the interests of noticing and fixing other warnings, we've decided
to turn off this particular check.
Modified: trunk/gs/src/configure.ac
===================================================================
--- trunk/gs/src/configure.ac 2007-02-02 18:54:09 UTC (rev 7670)
+++ trunk/gs/src/configure.ac 2007-02-02 20:29:28 UTC (rev 7671)
@@ -44,8 +44,8 @@
if test $ac_cv_prog_gcc = yes; then
cflags_to_try="-Wall -Wstrict-prototypes \
--Wmissing-declarations -Wmissing-prototypes \
--Wwrite-strings \
+-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
+-Wno-strict-aliasing \
-fno-builtin -fno-common"
optflags_to_try="-O2"
else
More information about the gs-cvs
mailing list