[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-21-g
From: |
Eric Blake |
Subject: |
[SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-21-ge0c743b |
Date: |
Mon, 19 Nov 2012 22:20:10 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU M4 source repository".
http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=e0c743b759a8f2dcc2dbabef3d7016fcda701a3e
The branch, branch-1.4 has been updated
via e0c743b759a8f2dcc2dbabef3d7016fcda701a3e (commit)
from d4017710b79aef691f1eb04f438ec7fe1b5cfc50 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e0c743b759a8f2dcc2dbabef3d7016fcda701a3e
Author: Eric Blake <address@hidden>
Date: Mon Nov 19 14:17:53 2012 -0700
build: avoid problematic gcc 4.4 warnings
Warnings that make sense under newer gcc can cause spurious
failures under older gcc; it's nice to allow out-of-the-box
development on stable releases while still getting the benefit
of improved warning detection in bleeding-edge setups.
* configure.ac (nw): Disable gcc warnings that cause build
failures under RHEL 6.3.
* gnulib: Update to latest.
Signed-off-by: Eric Blake <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
configure.ac | 23 ++++++++++++++++++++++-
gnulib | 2 +-
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b369e83..c415f70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-19 Eric Blake <address@hidden>
+
+ build: avoid problematic gcc 4.4 warnings
+ * configure.ac (nw): Disable gcc warnings that cause build
+ failures under RHEL 6.3.
+ * gnulib: Update to latest.
+
2012-11-14 Paul Eggert <address@hidden>
doc: improve prehistory discussion
diff --git a/configure.ac b/configure.ac
index e986de2..2d7ceef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,7 @@ if test "$gl_gcc_warnings" = yes; then
[M4_cv_gcc_pragma_push_works=no])
CFLAGS=$save_CFLAGS])
+ # This, $nw, is the list of warnings we disable.
nw=
nw="$nw -Waggregate-return" # K&R is anachronistic
nw="$nw -Wtraditional-conversion" # K&R is anachronistic
@@ -87,7 +88,27 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wsign-conversion" # Too many warnings for now
nw="$nw -Wcast-qual" # Too many warnings for now
nw="$nw -Wswitch-enum" # Too many warnings for now
- # This, $nw, is the list of warnings we disable.
+ # gcc 4.4.6 complains enum-compare is C++ only; gcc 4.7.0 implies it in -Wall
+ nw="$nw -Wenum-compare"
+
+ # Gnulib uses '#pragma GCC diagnostic push' to silence some
+ # warnings, but older gcc doesn't support this.
+ AC_CACHE_CHECK([whether pragma GCC diagnostic push works],
+ [M4_cv_gcc_pragma_push_works], [
+ save_CFLAGS=$CFLAGS
+ CFLAGS='-Wunknown-pragmas -Werror'
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic pop
+ ]])],
+ [M4_cv_gcc_pragma_push_works=yes],
+ [M4_cv_gcc_pragma_push_works=no])
+ CFLAGS=$save_CFLAGS])
+ if test $M4_cv_gcc_pragma_push_works = no; then
+ nw="$nw -Wmissing-prototypes"
+ nw="$nw -Wmissing-declarations"
+ nw="$nw -Wunreachable-code"
+ fi
gl_MANYWARN_ALL_GCC([ws])
gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
diff --git a/gnulib b/gnulib
index 3a9002d..fd9f1ac 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 3a9002d3cc63da7110f133b1040d2d2b0aad8305
+Subproject commit fd9f1acededd74f8cd095e657528aa8fad183536
hooks/post-receive
--
GNU M4 source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-21-ge0c743b,
Eric Blake <=