aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-08-19 07:36:22 +0200
committerJoakim Verona2013-08-19 07:36:22 +0200
commit433fc48f7db05643b7bab35e147ac2bc62713859 (patch)
tree8978edad51cc6c79efe3f5d69c0675250950b364
parent86adbaf5408b79d5147bb91bfe0b907f505a0541 (diff)
parent51632863c2551d06415e541235d90c66fd3e8def (diff)
downloademacs-433fc48f7db05643b7bab35e147ac2bc62713859.tar.gz
emacs-433fc48f7db05643b7bab35e147ac2bc62713859.zip
merge from trunk
-rw-r--r--ChangeLog6
-rw-r--r--m4/warnings.m413
2 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ac96bed2983..27395616072 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12013-08-19 Paul Eggert <eggert@cs.ucla.edu>
2
3 Merge from gnulib, incorporating:
4 2013-08-15 warnings: minor optimization
5 2013-08-15 warnings: check -Wfoo rather than -Wno-foo
6
12013-08-15 Ken Brown <kbrown@cornell.edu> 72013-08-15 Ken Brown <kbrown@cornell.edu>
2 8
3 * configure.ac (G_SLICE_ALWAYS_MALLOC): Update comment. 9 * configure.ac (G_SLICE_ALWAYS_MALLOC): Update comment.
diff --git a/m4/warnings.m4 b/m4/warnings.m4
index 184873283bb..5f5da51606b 100644
--- a/m4/warnings.m4
+++ b/m4/warnings.m4
@@ -1,4 +1,4 @@
1# warnings.m4 serial 8 1# warnings.m4 serial 10
2dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -25,15 +25,24 @@ m4_ifdef([AS_VAR_APPEND],
25AC_DEFUN([gl_COMPILER_OPTION_IF], 25AC_DEFUN([gl_COMPILER_OPTION_IF],
26[AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_[]_AC_LANG_ABBREV[]_$1])dnl 26[AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_[]_AC_LANG_ABBREV[]_$1])dnl
27AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl 27AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl
28AS_LITERAL_IF([$1],
29 [m4_pushdef([gl_Positive], m4_bpatsubst([$1], [^-Wno-], [-W]))],
30 [gl_positive="$1"
31case $gl_positive in
32 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
33esac
34m4_pushdef([gl_Positive], [$gl_positive])])dnl
28AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], m4_defn([gl_Warn]), [ 35AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], m4_defn([gl_Warn]), [
29 gl_save_compiler_FLAGS="$gl_Flags" 36 gl_save_compiler_FLAGS="$gl_Flags"
30 gl_AS_VAR_APPEND(m4_defn([gl_Flags]), [" $gl_unknown_warnings_are_errors $1"]) 37 gl_AS_VAR_APPEND(m4_defn([gl_Flags]),
38 [" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["])
31 AC_COMPILE_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])], 39 AC_COMPILE_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])],
32 [AS_VAR_SET(gl_Warn, [yes])], 40 [AS_VAR_SET(gl_Warn, [yes])],
33 [AS_VAR_SET(gl_Warn, [no])]) 41 [AS_VAR_SET(gl_Warn, [no])])
34 gl_Flags="$gl_save_compiler_FLAGS" 42 gl_Flags="$gl_save_compiler_FLAGS"
35]) 43])
36AS_VAR_IF(gl_Warn, [yes], [$2], [$3]) 44AS_VAR_IF(gl_Warn, [yes], [$2], [$3])
45m4_popdef([gl_Positive])dnl
37AS_VAR_POPDEF([gl_Flags])dnl 46AS_VAR_POPDEF([gl_Flags])dnl
38AS_VAR_POPDEF([gl_Warn])dnl 47AS_VAR_POPDEF([gl_Warn])dnl
39]) 48])