diff options
| author | Paul Eggert | 2016-05-18 00:05:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-18 00:49:28 -0700 |
| commit | 6f5db0255cab2e17ab53ee68f6dc2f4d75978d80 (patch) | |
| tree | 91149c57f1be7e0afef8d5d4d6ddff696d1257e5 | |
| parent | 631ca55c6decccca2dc0961dc28962819eacc35b (diff) | |
| download | emacs-6f5db0255cab2e17ab53ee68f6dc2f4d75978d80.tar.gz emacs-6f5db0255cab2e17ab53ee68f6dc2f4d75978d80.zip | |
Sync from gnulib
This incorporates:
2016-05-17 manywarnings: update for GCC 6.1
2016-05-13 intdiv0, memmem, nocrash, strcasestr, strstr: no exit
* m4/manywarnings.m4, m4/nocrash.m4: Copy from gnulib.
| -rw-r--r-- | m4/manywarnings.m4 | 14 | ||||
| -rw-r--r-- | m4/nocrash.m4 | 3 |
2 files changed, 15 insertions, 2 deletions
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 12d68da6f38..90823b0acf4 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # manywarnings.m4 serial 7 | 1 | # manywarnings.m4 serial 8 |
| 2 | dnl Copyright (C) 2008-2016 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2016 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, |
| @@ -129,6 +129,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 129 | -Wdiscarded-qualifiers \ | 129 | -Wdiscarded-qualifiers \ |
| 130 | -Wdiv-by-zero \ | 130 | -Wdiv-by-zero \ |
| 131 | -Wdouble-promotion \ | 131 | -Wdouble-promotion \ |
| 132 | -Wduplicated-cond \ | ||
| 132 | -Wempty-body \ | 133 | -Wempty-body \ |
| 133 | -Wendif-labels \ | 134 | -Wendif-labels \ |
| 134 | -Wenum-compare \ | 135 | -Wenum-compare \ |
| @@ -140,7 +141,10 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 140 | -Wformat-signedness \ | 141 | -Wformat-signedness \ |
| 141 | -Wformat-y2k \ | 142 | -Wformat-y2k \ |
| 142 | -Wformat-zero-length \ | 143 | -Wformat-zero-length \ |
| 144 | -Wframe-address \ | ||
| 143 | -Wfree-nonheap-object \ | 145 | -Wfree-nonheap-object \ |
| 146 | -Whsa \ | ||
| 147 | -Wignored-attributes \ | ||
| 144 | -Wignored-qualifiers \ | 148 | -Wignored-qualifiers \ |
| 145 | -Wimplicit \ | 149 | -Wimplicit \ |
| 146 | -Wimplicit-function-declaration \ | 150 | -Wimplicit-function-declaration \ |
| @@ -158,6 +162,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 158 | -Wmain \ | 162 | -Wmain \ |
| 159 | -Wmaybe-uninitialized \ | 163 | -Wmaybe-uninitialized \ |
| 160 | -Wmemset-transposed-args \ | 164 | -Wmemset-transposed-args \ |
| 165 | -Wmisleading-indentation \ | ||
| 161 | -Wmissing-braces \ | 166 | -Wmissing-braces \ |
| 162 | -Wmissing-declarations \ | 167 | -Wmissing-declarations \ |
| 163 | -Wmissing-field-initializers \ | 168 | -Wmissing-field-initializers \ |
| @@ -168,6 +173,8 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 168 | -Wnarrowing \ | 173 | -Wnarrowing \ |
| 169 | -Wnested-externs \ | 174 | -Wnested-externs \ |
| 170 | -Wnonnull \ | 175 | -Wnonnull \ |
| 176 | -Wnonnull-compare \ | ||
| 177 | -Wnull-dereference \ | ||
| 171 | -Wodr \ | 178 | -Wodr \ |
| 172 | -Wold-style-declaration \ | 179 | -Wold-style-declaration \ |
| 173 | -Wold-style-definition \ | 180 | -Wold-style-definition \ |
| @@ -184,10 +191,12 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 184 | -Wpragmas \ | 191 | -Wpragmas \ |
| 185 | -Wreturn-local-addr \ | 192 | -Wreturn-local-addr \ |
| 186 | -Wreturn-type \ | 193 | -Wreturn-type \ |
| 194 | -Wscalar-storage-order \ | ||
| 187 | -Wsequence-point \ | 195 | -Wsequence-point \ |
| 188 | -Wshadow \ | 196 | -Wshadow \ |
| 189 | -Wshift-count-negative \ | 197 | -Wshift-count-negative \ |
| 190 | -Wshift-count-overflow \ | 198 | -Wshift-count-overflow \ |
| 199 | -Wshift-negative-value \ | ||
| 191 | -Wsizeof-array-argument \ | 200 | -Wsizeof-array-argument \ |
| 192 | -Wsizeof-pointer-memaccess \ | 201 | -Wsizeof-pointer-memaccess \ |
| 193 | -Wstack-protector \ | 202 | -Wstack-protector \ |
| @@ -205,6 +214,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 205 | -Wswitch-default \ | 214 | -Wswitch-default \ |
| 206 | -Wsync-nand \ | 215 | -Wsync-nand \ |
| 207 | -Wsystem-headers \ | 216 | -Wsystem-headers \ |
| 217 | -Wtautological-compare \ | ||
| 208 | -Wtrampolines \ | 218 | -Wtrampolines \ |
| 209 | -Wtrigraphs \ | 219 | -Wtrigraphs \ |
| 210 | -Wtype-limits \ | 220 | -Wtype-limits \ |
| @@ -237,6 +247,8 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 237 | # them here so that the above 'comm' command doesn't report a false match. | 247 | # them here so that the above 'comm' command doesn't report a false match. |
| 238 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" | 248 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" |
| 239 | gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" | 249 | gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" |
| 250 | gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2" | ||
| 251 | gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2" | ||
| 240 | 252 | ||
| 241 | # These are needed for older GCC versions. | 253 | # These are needed for older GCC versions. |
| 242 | if test -n "$GCC"; then | 254 | if test -n "$GCC"; then |
diff --git a/m4/nocrash.m4 b/m4/nocrash.m4 index ecc55c6172d..d8dd8f13a12 100644 --- a/m4/nocrash.m4 +++ b/m4/nocrash.m4 | |||
| @@ -110,11 +110,12 @@ nocrash_init (void) | |||
| 110 | #else | 110 | #else |
| 111 | /* Avoid a crash on POSIX systems. */ | 111 | /* Avoid a crash on POSIX systems. */ |
| 112 | #include <signal.h> | 112 | #include <signal.h> |
| 113 | #include <unistd.h> | ||
| 113 | /* A POSIX signal handler. */ | 114 | /* A POSIX signal handler. */ |
| 114 | static void | 115 | static void |
| 115 | exception_handler (int sig) | 116 | exception_handler (int sig) |
| 116 | { | 117 | { |
| 117 | exit (1); | 118 | _exit (1); |
| 118 | } | 119 | } |
| 119 | static void | 120 | static void |
| 120 | nocrash_init (void) | 121 | nocrash_init (void) |