From: Paul Eggert Date: Tue, 1 Aug 2017 16:52:40 +0000 (-0700) Subject: manywarnings: port to 32-bit GCC bug X-Git-Tag: v1.0~6029 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=dbeec5dcb3dadd92773caae94fe57b921c4c86e8;p=gnulib.git 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 --- diff --git a/ChangeLog b/ChangeLog index 7aedb71470..44bdf79713 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2017-08-01 Paul Eggert + + 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 backupfile: new function to validate backup suffix diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 2d35eff6a2..6cf1be7d3d 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -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"