]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: port to 32-bit GCC bug
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Aug 2017 16:52:40 +0000 (09:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Aug 2017 16:53:18 +0000 (09:53 -0700)
Problem reported by Pino Toscano in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00150.html
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
not 2**63 - 1, to work around the following GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650

ChangeLog
m4/manywarnings.m4

index 7aedb71470bd379068e32367814fbfbd7c10d6fc..44bdf79713fb7d43cebb6fc5ad645e5132d6e9a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       manywarnings: port to 32-bit GCC bug
+       Problem reported by Pino Toscano in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00150.html
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
+       not 2**63 - 1, to work around the following GCC bug:
+       https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
+
 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        backupfile: new function to validate backup suffix
index 2d35eff6a2cf2981469f14212b11d70fec251561..6cf1be7d3d2fc84068f2d9d28b2a01ba6bb9eee4 100644 (file)
@@ -1,4 +1,4 @@
-# manywarnings.m4 serial 8
+# manywarnings.m4 serial 9
 dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -259,8 +259,8 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
   # gcc --help=warnings outputs an unusual form for these options; list
   # them here so that the above 'comm' command doesn't report a false match.
   # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal:
-  ptrdiff_max_max=9223372036854775807
-  gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$ptrdiff_max_max"
+  ptrdiff_max_min=2147483647
+  gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$ptrdiff_max_min"
   gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
   gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
   gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"