|
From: <sv...@va...> - 2015-09-21 09:51:14
|
Author: sewardj
Date: Mon Sep 21 10:51:07 2015
New Revision: 15661
Log:
Merge, from trunk, r15651 (Do not compile with -Wcast-align on arm.)
Modified:
branches/VALGRIND_3_11_BRANCH/ (props changed)
branches/VALGRIND_3_11_BRANCH/Makefile.all.am
branches/VALGRIND_3_11_BRANCH/configure.ac
Modified: branches/VALGRIND_3_11_BRANCH/Makefile.all.am
==============================================================================
--- branches/VALGRIND_3_11_BRANCH/Makefile.all.am (original)
+++ branches/VALGRIND_3_11_BRANCH/Makefile.all.am Mon Sep 21 10:51:07 2015
@@ -100,12 +100,12 @@
-O2 -g \
-std=gnu99 \
-Wall \
- -Wcast-align \
-Wmissing-prototypes \
-Wshadow \
-Wpointer-arith \
-Wstrict-prototypes \
-Wmissing-declarations \
+ @FLAG_W_CAST_ALIGN@ \
@FLAG_W_CAST_QUAL@ \
@FLAG_W_WRITE_STRINGS@ \
@FLAG_W_EMPTY_BODY@ \
Modified: branches/VALGRIND_3_11_BRANCH/configure.ac
==============================================================================
--- branches/VALGRIND_3_11_BRANCH/configure.ac (original)
+++ branches/VALGRIND_3_11_BRANCH/configure.ac Mon Sep 21 10:51:07 2015
@@ -1967,6 +1967,15 @@
])
CFLAGS=$safe_CFLAGS
+# On ARM we do not want to pass -Wcast-align as that produces loads
+# of warnings. GCC is just being conservative. See here:
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459#c4
+if test "X$VGCONF_ARCH_PRI" = "Xarm"; then
+ AC_SUBST([FLAG_W_CAST_ALIGN], [""])
+else
+ AC_SUBST([FLAG_W_CAST_ALIGN], [-Wcast-align])
+fi
+
# does this compiler support -fno-stack-protector ?
AC_MSG_CHECKING([if gcc accepts -fno-stack-protector])
|