|
From: <sv...@va...> - 2012-11-18 14:39:25
|
florian 2012-11-18 14:39:11 +0000 (Sun, 18 Nov 2012)
New Revision: 13126
Log:
Re-establich configury checking for -Wno-pointer-sign. We need that
flag to compile pref/tinycc.c. Sigh.
Modified files:
trunk/configure.in
trunk/perf/Makefile.am
Modified: trunk/perf/Makefile.am (+4 -1)
===================================================================
--- trunk/perf/Makefile.am 2012-11-18 00:36:15 +00:00 (rev 13125)
+++ trunk/perf/Makefile.am 2012-11-18 14:39:11 +00:00 (rev 13126)
@@ -30,4 +30,7 @@
fbench_CFLAGS = $(AM_CFLAGS) -O2
ffbench_LDADD = -lm
-tinycc_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-inline -Wno-pointer-sign
+tinycc_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-inline
+if HAS_POINTER_SIGN_WARNING
+tinycc_CFLAGS += -Wno-pointer-sign
+endif
Modified: trunk/configure.in (+20 -0)
===================================================================
--- trunk/configure.in 2012-11-18 00:36:15 +00:00 (rev 13125)
+++ trunk/configure.in 2012-11-18 14:39:11 +00:00 (rev 13126)
@@ -1397,6 +1397,26 @@
AC_SUBST(PREFERRED_STACK_BOUNDARY)
+# does this compiler support -Wno-pointer-sign ?
+AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign])
+
+safe_CFLAGS=$CFLAGS
+CFLAGS="-Wno-pointer-sign"
+
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
+ return 0;
+]])], [
+no_pointer_sign=yes
+AC_MSG_RESULT([yes])
+], [
+no_pointer_sign=no
+AC_MSG_RESULT([no])
+])
+CFLAGS=$safe_CFLAGS
+
+AM_CONDITIONAL(HAS_POINTER_SIGN_WARNING, test x$no_pointer_sign = xyes)
+
+
# does this compiler support -Wno-empty-body ?
AC_MSG_CHECKING([if gcc accepts -Wno-empty-body])
|