diff options
| author | Paul Eggert | 2017-08-04 22:46:31 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-08-04 22:47:05 -0700 |
| commit | b8748dd0932cbcf44bcbde8591f5cebad7eebfb1 (patch) | |
| tree | e6a09c879d36a427d04d48b05f8c287bd337f88f /m4 | |
| parent | 0a24f47f0eeba688f92043ef8733e0f7d9836c18 (diff) | |
| download | emacs-b8748dd0932cbcf44bcbde8591f5cebad7eebfb1.tar.gz emacs-b8748dd0932cbcf44bcbde8591f5cebad7eebfb1.zip | |
Merge from gnulib
This incorporates:
2017-08-04 manywarnings: port to 64-bit GCC builds of Emacs
2017-08-01 manywarnings: port to 32-bit GCC bug
* lib/gnulib.mk.in: Regenerate.
* m4/manywarnings.m4: Copy from gnulib.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/manywarnings.m4 | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 2d35eff6a2c..6a8939b2c1e 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # manywarnings.m4 serial 8 | 1 | # manywarnings.m4 serial 10 |
| 2 | dnl Copyright (C) 2008-2017 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2017 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, |
| @@ -258,9 +258,20 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 258 | 258 | ||
| 259 | # gcc --help=warnings outputs an unusual form for these options; list | 259 | # gcc --help=warnings outputs an unusual form for these options; list |
| 260 | # them here so that the above 'comm' command doesn't report a false match. | 260 | # them here so that the above 'comm' command doesn't report a false match. |
| 261 | # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal: | 261 | # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal |
| 262 | ptrdiff_max_max=9223372036854775807 | 262 | # and AC_COMPUTE_INT requires it to fit in a long: |
| 263 | gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$ptrdiff_max_max" | 263 | AC_MSG_CHECKING([max safe object size]) |
| 264 | AC_COMPUTE_INT([gl_alloc_max], | ||
| 265 | [(LONG_MAX < PTRDIFF_MAX ? LONG_MAX : PTRDIFF_MAX) < (size_t) -1 | ||
| 266 | ? (LONG_MAX < PTRDIFF_MAX ? LONG_MAX : PTRDIFF_MAX) | ||
| 267 | : (size_t) -1], | ||
| 268 | [[#include <limits.h> | ||
| 269 | #include <stddef.h> | ||
| 270 | #include <stdint.h> | ||
| 271 | ]], | ||
| 272 | [gl_alloc_max=2147483647]) | ||
| 273 | AC_MSG_RESULT([$gl_alloc_max]) | ||
| 274 | gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" | ||
| 264 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" | 275 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" |
| 265 | gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2" | 276 | gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2" |
| 266 | gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2" | 277 | gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2" |