Update of /cvsroot/monetdb/buildtools/conf
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22004/buildtools/conf
Modified Files:
Tag: MonetDB_1-20
MonetDB.m4
Log Message:
since compilation with strict compiler settings have (once again)
proved to be bery useful to locate bugs in the code,
we nolonger simply disable all of the strict "X_CFLAGS"
in directories that (also) contain swig-code,
but rather selectively disable only those extra warnings/errors
that do indeed occur in code that is beyond our control.
(This affects only compilation with --enable-strict.)
Index: MonetDB.m4
===================================================================
RCS file: /cvsroot/monetdb/buildtools/conf/MonetDB.m4,v
retrieving revision 1.37.2.7
retrieving revision 1.37.2.8
diff -u -d -r1.37.2.7 -r1.37.2.8
--- MonetDB.m4 22 Oct 2007 20:58:20 -0000 1.37.2.7
+++ MonetDB.m4 6 Nov 2007 11:55:46 -0000 1.37.2.8
@@ -656,6 +656,8 @@
NO_INLINE_CFLAGS=""
GCC_BISON_CFLAGS=""
ICC_BISON_CFLAGS=""
+GCC_SWIG_CFLAGS=""
+ICC_SWIG_CFLAGS=""
CFLAGS_NO_OPT="-O0"
if test "x$enable_strict" = xyes; then
case "$GCC-$CC-$host_os" in
@@ -730,6 +732,20 @@
X_CFLAGS="$X_CFLAGS -Wno-uninitialized"
;;
esac
+
+ dnl GNU's gcc does not like to compile swig-generated code
+ dnl (at least not with our strict X_CFLAGS), complaining about
+ dnl "warning: dereferencing type-punned pointer will break
strict-aliasing rules",
+ dnl "warning: unused variable '...'",
+ dnl "warning: '..' defined but not used",
+ dnl "warning: unused parameter '...'", and/or
+ dnl 'error: "..." is not defined'.
+ dnl Hence, we use GCC_SWIG_CFLAGS to disable the respective warning
+ dnl as locally as possbile via "-Wno-strict-aliasing
-Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-undef"
+ dnl (see also sql/src/backends/monet[45]/Makefile.ag,
+ dnl clients/src/{python,perl,php}/Cimpl/Makefile.ag).
+ GCC_SWIG_CFLAGS="$GCC_SWIG_CFLAGS -Wno-strict-aliasing
-Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-undef"
+
NO_INLINE_CFLAGS="-fno-inline -fno-inline-functions"
;;
-icc*-linux*|-ecc*-linux*)
@@ -798,6 +814,18 @@
dnl (#177: label "." was declared but never referenced)
dnl (see also pathfinder/modules/pftijah/Makefile.ag).
ICC_BISON_CFLAGS="$ICC_BISON_CFLAGS -wd177"
+
+ dnl Intel's icc does not like to compile swig-generated code
+ dnl (at least not with our strict X_CFLAGS), complaining about
+ dnl 'error #869: parameter "..." was never referenced',
+ dnl 'error #177: function "..." was declared but never referenced',
and/or
+ dnl 'error #310: old-style parameter list (anachronism)'.
+ dnl Hence, we use ICC_SWIG_CFLAGS to disable the respective warning
+ dnl as locally as possbile via "-wd869 -wd177 -wd310"
+ dnl (see also sql/src/backends/monet[45]/Makefile.ag,
+ dnl clients/src/{python,perl,php}/Cimpl/Makefile.ag).
+ ICC_SWIG_CFLAGS="$ICC_SWIG_CFLAGS -wd869 -wd177 -wd310"
+
NO_INLINE_CFLAGS="-fno-inline -fno-inline-functions"
;;
-pgcc*-linux*)
@@ -1724,6 +1752,8 @@
AC_SUBST(NO_INLINE_CFLAGS)
AC_SUBST(GCC_BISON_CFLAGS)
AC_SUBST(ICC_BISON_CFLAGS)
+AC_SUBST(GCC_SWIG_CFLAGS)
+AC_SUBST(ICC_SWIG_CFLAGS)
dnl --enable-warning (only gcc & icc/ecc)
AC_ARG_ENABLE(warning,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins