diff options
| author | Joakim Verona | 2013-08-19 07:36:22 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-19 07:36:22 +0200 |
| commit | 433fc48f7db05643b7bab35e147ac2bc62713859 (patch) | |
| tree | 8978edad51cc6c79efe3f5d69c0675250950b364 | |
| parent | 86adbaf5408b79d5147bb91bfe0b907f505a0541 (diff) | |
| parent | 51632863c2551d06415e541235d90c66fd3e8def (diff) | |
| download | emacs-433fc48f7db05643b7bab35e147ac2bc62713859.tar.gz emacs-433fc48f7db05643b7bab35e147ac2bc62713859.zip | |
merge from trunk
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | m4/warnings.m4 | 13 |
2 files changed, 17 insertions, 2 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-08-15 Ken Brown <kbrown@cornell.edu> | 7 | 2013-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 |
| 2 | dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -25,15 +25,24 @@ m4_ifdef([AS_VAR_APPEND], | |||
| 25 | AC_DEFUN([gl_COMPILER_OPTION_IF], | 25 | AC_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 |
| 27 | AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl | 27 | AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl |
| 28 | AS_LITERAL_IF([$1], | ||
| 29 | [m4_pushdef([gl_Positive], m4_bpatsubst([$1], [^-Wno-], [-W]))], | ||
| 30 | [gl_positive="$1" | ||
| 31 | case $gl_positive in | ||
| 32 | -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; | ||
| 33 | esac | ||
| 34 | m4_pushdef([gl_Positive], [$gl_positive])])dnl | ||
| 28 | AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], m4_defn([gl_Warn]), [ | 35 | AC_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 | ]) |
| 36 | AS_VAR_IF(gl_Warn, [yes], [$2], [$3]) | 44 | AS_VAR_IF(gl_Warn, [yes], [$2], [$3]) |
| 45 | m4_popdef([gl_Positive])dnl | ||
| 37 | AS_VAR_POPDEF([gl_Flags])dnl | 46 | AS_VAR_POPDEF([gl_Flags])dnl |
| 38 | AS_VAR_POPDEF([gl_Warn])dnl | 47 | AS_VAR_POPDEF([gl_Warn])dnl |
| 39 | ]) | 48 | ]) |