diff options
| author | Paul Eggert | 2017-09-17 12:56:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-17 13:06:54 -0700 |
| commit | 6bbbc38b3421723521f7cdd4fd617a4fc889aceb (patch) | |
| tree | 9cc9d4cd249578118ae6b22da617935a760cc891 | |
| parent | 57249fb297237bb942ead1f7a0af0ac20811a9cf (diff) | |
| download | emacs-6bbbc38b3421723521f7cdd4fd617a4fc889aceb.tar.gz emacs-6bbbc38b3421723521f7cdd4fd617a4fc889aceb.zip | |
Merge from Gnulib
This incorporates:
2017-09-16 manywarnings: port to GCC on 64-bit MS-Windows
2017-09-13 all: Replace many more http URLs by https URLs
* build-aux/config.guess, build-aux/config.sub:
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/allocator.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/dup2.c, lib/filevercmp.c:
* lib/fstatat.c, lib/fsync.c, lib/ftoastr.c, lib/ftoastr.h:
* lib/intprops.h, lib/signal.in.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/unistd.in.h, lib/utimens.c, m4/alloca.m4, m4/extern-inline.m4:
* m4/fstatat.m4, m4/gnulib-common.m4, m4/manywarnings.m4:
* m4/std-gnu11.m4, m4/sys_types_h.m4, m4/vararrays.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
| -rwxr-xr-x | build-aux/config.guess | 38 | ||||
| -rwxr-xr-x | build-aux/config.sub | 20 | ||||
| -rwxr-xr-x | build-aux/gitlog-to-changelog | 2 | ||||
| -rw-r--r-- | doc/misc/texinfo.tex | 14 | ||||
| -rw-r--r-- | lib/allocator.h | 2 | ||||
| -rw-r--r-- | lib/count-leading-zeros.h | 3 | ||||
| -rw-r--r-- | lib/count-trailing-zeros.h | 3 | ||||
| -rw-r--r-- | lib/dup2.c | 2 | ||||
| -rw-r--r-- | lib/filevercmp.c | 2 | ||||
| -rw-r--r-- | lib/fstatat.c | 2 | ||||
| -rw-r--r-- | lib/fsync.c | 4 | ||||
| -rw-r--r-- | lib/ftoastr.c | 2 | ||||
| -rw-r--r-- | lib/ftoastr.h | 2 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 1 | ||||
| -rw-r--r-- | lib/intprops.h | 6 | ||||
| -rw-r--r-- | lib/signal.in.h | 2 | ||||
| -rw-r--r-- | lib/stdio-impl.h | 10 | ||||
| -rw-r--r-- | lib/stdio.in.h | 4 | ||||
| -rw-r--r-- | lib/unistd.in.h | 4 | ||||
| -rw-r--r-- | lib/utimens.c | 10 | ||||
| -rw-r--r-- | m4/alloca.m4 | 4 | ||||
| -rw-r--r-- | m4/extern-inline.m4 | 8 | ||||
| -rw-r--r-- | m4/fstatat.m4 | 2 | ||||
| -rw-r--r-- | m4/gnulib-common.m4 | 6 | ||||
| -rw-r--r-- | m4/manywarnings.m4 | 17 | ||||
| -rw-r--r-- | m4/std-gnu11.m4 | 4 | ||||
| -rw-r--r-- | m4/sys_types_h.m4 | 2 | ||||
| -rw-r--r-- | m4/vararrays.m4 | 2 |
28 files changed, 79 insertions, 99 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess index a7448442748..8bd1095f112 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright 1992-2017 Free Software Foundation, Inc. | 3 | # Copyright 1992-2017 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | timestamp='2017-08-08' | 5 | timestamp='2017-09-16' |
| 6 | 6 | ||
| 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
| 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
| @@ -15,7 +15,7 @@ timestamp='2017-08-08' | |||
| 15 | # General Public License for more details. | 15 | # General Public License for more details. |
| 16 | # | 16 | # |
| 17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # As a special exception to the GNU General Public License, if you | 20 | # As a special exception to the GNU General Public License, if you |
| 21 | # distribute this file as part of a program that contains a | 21 | # distribute this file as part of a program that contains a |
| @@ -27,7 +27,7 @@ timestamp='2017-08-08' | |||
| 27 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | 27 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
| 28 | # | 28 | # |
| 29 | # You can get the latest version of this script from: | 29 | # You can get the latest version of this script from: |
| 30 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | 30 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess |
| 31 | # | 31 | # |
| 32 | # Please send patches to <config-patches@gnu.org>. | 32 | # Please send patches to <config-patches@gnu.org>. |
| 33 | 33 | ||
| @@ -318,15 +318,6 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |||
| 318 | exitcode=$? | 318 | exitcode=$? |
| 319 | trap '' 0 | 319 | trap '' 0 |
| 320 | exit $exitcode ;; | 320 | exit $exitcode ;; |
| 321 | Alpha\ *:Windows_NT*:*) | ||
| 322 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
| 323 | # Should we change UNAME_MACHINE based on the output of uname instead | ||
| 324 | # of the specific Alpha model? | ||
| 325 | echo alpha-pc-interix | ||
| 326 | exit ;; | ||
| 327 | 21064:Windows_NT:50:3) | ||
| 328 | echo alpha-dec-winnt3.5 | ||
| 329 | exit ;; | ||
| 330 | Amiga*:UNIX_System_V:4.0:*) | 321 | Amiga*:UNIX_System_V:4.0:*) |
| 331 | echo m68k-unknown-sysv4 | 322 | echo m68k-unknown-sysv4 |
| 332 | exit ;; | 323 | exit ;; |
| @@ -858,10 +849,6 @@ EOF | |||
| 858 | *:MSYS*:*) | 849 | *:MSYS*:*) |
| 859 | echo ${UNAME_MACHINE}-pc-msys | 850 | echo ${UNAME_MACHINE}-pc-msys |
| 860 | exit ;; | 851 | exit ;; |
| 861 | i*:windows32*:*) | ||
| 862 | # uname -m includes "-pc" on this system. | ||
| 863 | echo ${UNAME_MACHINE}-mingw32 | ||
| 864 | exit ;; | ||
| 865 | i*:PW*:*) | 852 | i*:PW*:*) |
| 866 | echo ${UNAME_MACHINE}-pc-pw32 | 853 | echo ${UNAME_MACHINE}-pc-pw32 |
| 867 | exit ;; | 854 | exit ;; |
| @@ -877,27 +864,12 @@ EOF | |||
| 877 | echo ia64-unknown-interix${UNAME_RELEASE} | 864 | echo ia64-unknown-interix${UNAME_RELEASE} |
| 878 | exit ;; | 865 | exit ;; |
| 879 | esac ;; | 866 | esac ;; |
| 880 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | ||
| 881 | echo i${UNAME_MACHINE}-pc-mks | ||
| 882 | exit ;; | ||
| 883 | 8664:Windows_NT:*) | ||
| 884 | echo x86_64-pc-mks | ||
| 885 | exit ;; | ||
| 886 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | ||
| 887 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
| 888 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | ||
| 889 | # UNAME_MACHINE based on the output of uname instead of i386? | ||
| 890 | echo i586-pc-interix | ||
| 891 | exit ;; | ||
| 892 | i*:UWIN*:*) | 867 | i*:UWIN*:*) |
| 893 | echo ${UNAME_MACHINE}-pc-uwin | 868 | echo ${UNAME_MACHINE}-pc-uwin |
| 894 | exit ;; | 869 | exit ;; |
| 895 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | 870 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
| 896 | echo x86_64-unknown-cygwin | 871 | echo x86_64-unknown-cygwin |
| 897 | exit ;; | 872 | exit ;; |
| 898 | p*:CYGWIN*:*) | ||
| 899 | echo powerpcle-unknown-cygwin | ||
| 900 | exit ;; | ||
| 901 | prep*:SunOS:5.*:*) | 873 | prep*:SunOS:5.*:*) |
| 902 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 874 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 903 | exit ;; | 875 | exit ;; |
| @@ -1435,9 +1407,9 @@ This script (version $timestamp), has failed to recognize the | |||
| 1435 | operating system you are using. If your script is old, overwrite *all* | 1407 | operating system you are using. If your script is old, overwrite *all* |
| 1436 | copies of config.guess and config.sub with the latest versions from: | 1408 | copies of config.guess and config.sub with the latest versions from: |
| 1437 | 1409 | ||
| 1438 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | 1410 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess |
| 1439 | and | 1411 | and |
| 1440 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | 1412 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
| 1441 | 1413 | ||
| 1442 | If $0 has already been updated, send the following data and any | 1414 | If $0 has already been updated, send the following data and any |
| 1443 | information you think might be pertinent to config-patches@gnu.org to | 1415 | information you think might be pertinent to config-patches@gnu.org to |
diff --git a/build-aux/config.sub b/build-aux/config.sub index 40ea5dfe115..95dc3d07248 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
| 3 | # Copyright 1992-2017 Free Software Foundation, Inc. | 3 | # Copyright 1992-2017 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | timestamp='2017-04-02' | 5 | timestamp='2017-09-16' |
| 6 | 6 | ||
| 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
| 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
| @@ -15,7 +15,7 @@ timestamp='2017-04-02' | |||
| 15 | # General Public License for more details. | 15 | # General Public License for more details. |
| 16 | # | 16 | # |
| 17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # As a special exception to the GNU General Public License, if you | 20 | # As a special exception to the GNU General Public License, if you |
| 21 | # distribute this file as part of a program that contains a | 21 | # distribute this file as part of a program that contains a |
| @@ -33,7 +33,7 @@ timestamp='2017-04-02' | |||
| 33 | # Otherwise, we print the canonical config type on stdout and succeed. | 33 | # Otherwise, we print the canonical config type on stdout and succeed. |
| 34 | 34 | ||
| 35 | # You can get the latest version of this script from: | 35 | # You can get the latest version of this script from: |
| 36 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | 36 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
| 37 | 37 | ||
| 38 | # This file is supposed to be the same for all GNU packages | 38 | # This file is supposed to be the same for all GNU packages |
| 39 | # and recognize all the CPU types, system types and aliases | 39 | # and recognize all the CPU types, system types and aliases |
| @@ -229,9 +229,6 @@ case $os in | |||
| 229 | -ptx*) | 229 | -ptx*) |
| 230 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | 230 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
| 231 | ;; | 231 | ;; |
| 232 | -windowsnt*) | ||
| 233 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | ||
| 234 | ;; | ||
| 235 | -psos*) | 232 | -psos*) |
| 236 | os=-psos | 233 | os=-psos |
| 237 | ;; | 234 | ;; |
| @@ -1259,6 +1256,9 @@ case $basic_machine in | |||
| 1259 | basic_machine=hppa1.1-winbond | 1256 | basic_machine=hppa1.1-winbond |
| 1260 | os=-proelf | 1257 | os=-proelf |
| 1261 | ;; | 1258 | ;; |
| 1259 | x64) | ||
| 1260 | basic_machine=x86_64-pc | ||
| 1261 | ;; | ||
| 1262 | xbox) | 1262 | xbox) |
| 1263 | basic_machine=i686-pc | 1263 | basic_machine=i686-pc |
| 1264 | os=-mingw32 | 1264 | os=-mingw32 |
| @@ -1366,8 +1366,8 @@ esac | |||
| 1366 | if [ x"$os" != x"" ] | 1366 | if [ x"$os" != x"" ] |
| 1367 | then | 1367 | then |
| 1368 | case $os in | 1368 | case $os in |
| 1369 | # First match some system type aliases | 1369 | # First match some system type aliases that might get confused |
| 1370 | # that might get confused with valid system types. | 1370 | # with valid system types. |
| 1371 | # -solaris* is a basic system type, with this one exception. | 1371 | # -solaris* is a basic system type, with this one exception. |
| 1372 | -auroraux) | 1372 | -auroraux) |
| 1373 | os=-auroraux | 1373 | os=-auroraux |
| @@ -1387,9 +1387,9 @@ case $os in | |||
| 1387 | -gnu/linux*) | 1387 | -gnu/linux*) |
| 1388 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | 1388 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
| 1389 | ;; | 1389 | ;; |
| 1390 | # First accept the basic system types. | 1390 | # Now accept the basic system types. |
| 1391 | # The portable systems comes first. | 1391 | # The portable systems comes first. |
| 1392 | # Each alternative MUST END IN A *, to match a version number. | 1392 | # Each alternative MUST end in a * to match a version number. |
| 1393 | # -sysv* is not here because it comes later, after sysvr4. | 1393 | # -sysv* is not here because it comes later, after sysvr4. |
| 1394 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | 1394 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1395 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | 1395 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index ec5ab9e141c..3c94bd56a0b 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog | |||
| @@ -33,7 +33,7 @@ use POSIX qw(strftime); | |||
| 33 | 33 | ||
| 34 | (my $ME = $0) =~ s|.*/||; | 34 | (my $ME = $0) =~ s|.*/||; |
| 35 | 35 | ||
| 36 | # use File::Coda; # http://meyering.net/code/Coda/ | 36 | # use File::Coda; # https://meyering.net/code/Coda/ |
| 37 | END { | 37 | END { |
| 38 | defined fileno STDOUT or return; | 38 | defined fileno STDOUT or return; |
| 39 | close STDOUT and return; | 39 | close STDOUT and return; |
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index a774790c511..9bd75b91e46 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | % Load plain if necessary, i.e., if running under initex. | 3 | % Load plain if necessary, i.e., if running under initex. |
| 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi | 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi |
| 5 | % | 5 | % |
| 6 | \def\texinfoversion{2017-08-23.19} | 6 | \def\texinfoversion{2017-09-16.10} |
| 7 | % | 7 | % |
| 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, | 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, |
| 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| @@ -21,7 +21,7 @@ | |||
| 21 | % General Public License for more details. | 21 | % General Public License for more details. |
| 22 | % | 22 | % |
| 23 | % You should have received a copy of the GNU General Public License | 23 | % You should have received a copy of the GNU General Public License |
| 24 | % along with this program. If not, see <http://www.gnu.org/licenses/>. | 24 | % along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 25 | % | 25 | % |
| 26 | % As a special exception, when this file is read by TeX when processing | 26 | % As a special exception, when this file is read by TeX when processing |
| 27 | % a Texinfo source document, you may use the result without | 27 | % a Texinfo source document, you may use the result without |
| @@ -30,9 +30,9 @@ | |||
| 30 | % | 30 | % |
| 31 | % Please try the latest version of texinfo.tex before submitting bug | 31 | % Please try the latest version of texinfo.tex before submitting bug |
| 32 | % reports; you can get the latest version from: | 32 | % reports; you can get the latest version from: |
| 33 | % http://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or | 33 | % https://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or |
| 34 | % http://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or | 34 | % https://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or |
| 35 | % http://www.gnu.org/software/texinfo/ (the Texinfo home page) | 35 | % https://www.gnu.org/software/texinfo/ (the Texinfo home page) |
| 36 | % The texinfo.tex in any given distribution could well be out | 36 | % The texinfo.tex in any given distribution could well be out |
| 37 | % of date, so if that's what you're using, please check. | 37 | % of date, so if that's what you're using, please check. |
| 38 | % | 38 | % |
| @@ -56,7 +56,7 @@ | |||
| 56 | % extent. You can get the existing language-specific files from the | 56 | % extent. You can get the existing language-specific files from the |
| 57 | % full Texinfo distribution. | 57 | % full Texinfo distribution. |
| 58 | % | 58 | % |
| 59 | % The GNU Texinfo home page is http://www.gnu.org/software/texinfo. | 59 | % The GNU Texinfo home page is https://www.gnu.org/software/texinfo. |
| 60 | 60 | ||
| 61 | 61 | ||
| 62 | \message{Loading texinfo [version \texinfoversion]:} | 62 | \message{Loading texinfo [version \texinfoversion]:} |
| @@ -9446,7 +9446,7 @@ end | |||
| 9446 | \newif\ifwarnednoepsf | 9446 | \newif\ifwarnednoepsf |
| 9447 | \newhelp\noepsfhelp{epsf.tex must be installed for images to | 9447 | \newhelp\noepsfhelp{epsf.tex must be installed for images to |
| 9448 | work. It is also included in the Texinfo distribution, or you can get | 9448 | work. It is also included in the Texinfo distribution, or you can get |
| 9449 | it from ftp://tug.org/tex/epsf.tex.} | 9449 | it from https://ctan.org/texarchive/macros/texinfo/texinfo/doc/epsf.tex.} |
| 9450 | % | 9450 | % |
| 9451 | \def\image#1{% | 9451 | \def\image#1{% |
| 9452 | \ifx\epsfbox\thisisundefined | 9452 | \ifx\epsfbox\thisisundefined |
diff --git a/lib/allocator.h b/lib/allocator.h index 2ecbf1a3795..8f79d7435c3 100644 --- a/lib/allocator.h +++ b/lib/allocator.h | |||
| @@ -29,7 +29,7 @@ struct allocator | |||
| 29 | /* Do not use GCC attributes such as __attribute__ ((malloc)) with | 29 | /* Do not use GCC attributes such as __attribute__ ((malloc)) with |
| 30 | the function types pointed at by these members, because these | 30 | the function types pointed at by these members, because these |
| 31 | attributes do not work with pointers to functions. See | 31 | attributes do not work with pointers to functions. See |
| 32 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00007.html>. */ | 32 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00007.html>. */ |
| 33 | 33 | ||
| 34 | /* Call ALLOCATE to allocate memory, like 'malloc'. On failure ALLOCATE | 34 | /* Call ALLOCATE to allocate memory, like 'malloc'. On failure ALLOCATE |
| 35 | should return NULL, though not necessarily set errno. When given | 35 | should return NULL, though not necessarily set errno. When given |
diff --git a/lib/count-leading-zeros.h b/lib/count-leading-zeros.h index 1b60e28e7ff..c8b3dc05110 100644 --- a/lib/count-leading-zeros.h +++ b/lib/count-leading-zeros.h | |||
| @@ -70,7 +70,8 @@ _GL_INLINE_HEADER_BEGIN | |||
| 70 | COUNT_LEADING_ZEROS_INLINE int | 70 | COUNT_LEADING_ZEROS_INLINE int |
| 71 | count_leading_zeros_32 (unsigned int x) | 71 | count_leading_zeros_32 (unsigned int x) |
| 72 | { | 72 | { |
| 73 | /* http://graphics.stanford.edu/~seander/bithacks.html */ | 73 | /* <https://github.com/gibsjose/BitHacks> |
| 74 | <http://www.fit.vutbr.cz/~ibarina/pub/bithacks.pdf> */ | ||
| 74 | static const char de_Bruijn_lookup[32] = { | 75 | static const char de_Bruijn_lookup[32] = { |
| 75 | 31, 22, 30, 21, 18, 10, 29, 2, 20, 17, 15, 13, 9, 6, 28, 1, | 76 | 31, 22, 30, 21, 18, 10, 29, 2, 20, 17, 15, 13, 9, 6, 28, 1, |
| 76 | 23, 19, 11, 3, 16, 14, 7, 24, 12, 4, 8, 25, 5, 26, 27, 0 | 77 | 23, 19, 11, 3, 16, 14, 7, 24, 12, 4, 8, 25, 5, 26, 27, 0 |
diff --git a/lib/count-trailing-zeros.h b/lib/count-trailing-zeros.h index be7131429c1..9f9f07f5a0d 100644 --- a/lib/count-trailing-zeros.h +++ b/lib/count-trailing-zeros.h | |||
| @@ -68,7 +68,8 @@ _GL_INLINE_HEADER_BEGIN | |||
| 68 | COUNT_TRAILING_ZEROS_INLINE int | 68 | COUNT_TRAILING_ZEROS_INLINE int |
| 69 | count_trailing_zeros_32 (unsigned int x) | 69 | count_trailing_zeros_32 (unsigned int x) |
| 70 | { | 70 | { |
| 71 | /* http://graphics.stanford.edu/~seander/bithacks.html */ | 71 | /* <https://github.com/gibsjose/BitHacks> |
| 72 | <http://www.fit.vutbr.cz/~ibarina/pub/bithacks.pdf> */ | ||
| 72 | static const char de_Bruijn_lookup[32] = { | 73 | static const char de_Bruijn_lookup[32] = { |
| 73 | 0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8, | 74 | 0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8, |
| 74 | 31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9 | 75 | 31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9 |
diff --git a/lib/dup2.c b/lib/dup2.c index b89f83732fe..85c1a44401a 100644 --- a/lib/dup2.c +++ b/lib/dup2.c | |||
| @@ -88,7 +88,7 @@ ms_windows_dup2 (int fd, int desired_fd) | |||
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: | 90 | /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: |
| 91 | http://bugs.winehq.org/show_bug.cgi?id=21289 */ | 91 | https://bugs.winehq.org/show_bug.cgi?id=21289 */ |
| 92 | if (desired_fd < 0) | 92 | if (desired_fd < 0) |
| 93 | { | 93 | { |
| 94 | errno = EBADF; | 94 | errno = EBADF; |
diff --git a/lib/filevercmp.c b/lib/filevercmp.c index 56c9821e364..4026097b38e 100644 --- a/lib/filevercmp.c +++ b/lib/filevercmp.c | |||
| @@ -79,7 +79,7 @@ order (unsigned char c) | |||
| 79 | specification can be found in the Debian Policy Manual in the | 79 | specification can be found in the Debian Policy Manual in the |
| 80 | section on the 'Version' control field. This version of the code | 80 | section on the 'Version' control field. This version of the code |
| 81 | implements that from s5.6.12 of Debian Policy v3.8.0.1 | 81 | implements that from s5.6.12 of Debian Policy v3.8.0.1 |
| 82 | http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version */ | 82 | https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version */ |
| 83 | static int _GL_ATTRIBUTE_PURE | 83 | static int _GL_ATTRIBUTE_PURE |
| 84 | verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len) | 84 | verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len) |
| 85 | { | 85 | { |
diff --git a/lib/fstatat.c b/lib/fstatat.c index d09add037fa..67e48d95d71 100644 --- a/lib/fstatat.c +++ b/lib/fstatat.c | |||
| @@ -111,7 +111,7 @@ stat_func (char const *name, struct stat *st) | |||
| 111 | # endif | 111 | # endif |
| 112 | 112 | ||
| 113 | /* Replacement for Solaris' function by the same name. | 113 | /* Replacement for Solaris' function by the same name. |
| 114 | <http://www.google.com/search?q=fstatat+site:docs.sun.com> | 114 | <https://www.google.com/search?q=fstatat+site:docs.oracle.com> |
| 115 | First, try to simulate it via l?stat ("/proc/self/fd/FD/FILE"). | 115 | First, try to simulate it via l?stat ("/proc/self/fd/FD/FILE"). |
| 116 | Failing that, simulate it via save_cwd/fchdir/(stat|lstat)/restore_cwd. | 116 | Failing that, simulate it via save_cwd/fchdir/(stat|lstat)/restore_cwd. |
| 117 | If either the save_cwd or the restore_cwd fails (relatively unlikely), | 117 | If either the save_cwd or the restore_cwd fails (relatively unlikely), |
diff --git a/lib/fsync.c b/lib/fsync.c index a52e6642f91..c25f1db6575 100644 --- a/lib/fsync.c +++ b/lib/fsync.c | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | cross-compilers like MinGW. | 2 | cross-compilers like MinGW. |
| 3 | 3 | ||
| 4 | This is derived from sqlite3 sources. | 4 | This is derived from sqlite3 sources. |
| 5 | http://www.sqlite.org/cvstrac/rlog?f=sqlite/src/os_win.c | 5 | https://www.sqlite.org/src/finfo?name=src/os_win.c |
| 6 | http://www.sqlite.org/copyright.html | 6 | https://www.sqlite.org/copyright.html |
| 7 | 7 | ||
| 8 | Written by Richard W.M. Jones <rjones.at.redhat.com> | 8 | Written by Richard W.M. Jones <rjones.at.redhat.com> |
| 9 | 9 | ||
diff --git a/lib/ftoastr.c b/lib/ftoastr.c index 029e797b796..bcc79f03673 100644 --- a/lib/ftoastr.c +++ b/lib/ftoastr.c | |||
| @@ -108,7 +108,7 @@ FTOASTR (char *buf, size_t bufsize, int flags, int width, FLOAT x) | |||
| 108 | Andrysco M, Jhala R, Lerner S. Printing floating-point numbers: | 108 | Andrysco M, Jhala R, Lerner S. Printing floating-point numbers: |
| 109 | a faster, always correct method. ACM SIGPLAN notices - POPL '16. | 109 | a faster, always correct method. ACM SIGPLAN notices - POPL '16. |
| 110 | 2016;51(1):555-67 <http://dx.doi.org/10.1145/2914770.2837654>; draft at | 110 | 2016;51(1):555-67 <http://dx.doi.org/10.1145/2914770.2837654>; draft at |
| 111 | <http://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf>. */ | 111 | <https://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf>. */ |
| 112 | 112 | ||
| 113 | PROMOTED_FLOAT promoted_x = x; | 113 | PROMOTED_FLOAT promoted_x = x; |
| 114 | char format[sizeof "%-+ 0*.*Lg"]; | 114 | char format[sizeof "%-+ 0*.*Lg"]; |
diff --git a/lib/ftoastr.h b/lib/ftoastr.h index 3ee05a30335..f73712c9415 100644 --- a/lib/ftoastr.h +++ b/lib/ftoastr.h | |||
| @@ -96,7 +96,7 @@ enum | |||
| 96 | DIG digits. For why the "+ 1" is needed, see "Binary to Decimal | 96 | DIG digits. For why the "+ 1" is needed, see "Binary to Decimal |
| 97 | Conversion" in David Goldberg's paper "What Every Computer | 97 | Conversion" in David Goldberg's paper "What Every Computer |
| 98 | Scientist Should Know About Floating-Point Arithmetic" | 98 | Scientist Should Know About Floating-Point Arithmetic" |
| 99 | <http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>. */ | 99 | <https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>. */ |
| 100 | # define _GL_FLOAT_PREC_BOUND(dig) \ | 100 | # define _GL_FLOAT_PREC_BOUND(dig) \ |
| 101 | (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1) | 101 | (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1) |
| 102 | 102 | ||
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 9500871b162..d8afec40bc6 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -558,6 +558,7 @@ LIBGPM = @LIBGPM@ | |||
| 558 | LIBHESIOD = @LIBHESIOD@ | 558 | LIBHESIOD = @LIBHESIOD@ |
| 559 | LIBINTL = @LIBINTL@ | 559 | LIBINTL = @LIBINTL@ |
| 560 | LIBJPEG = @LIBJPEG@ | 560 | LIBJPEG = @LIBJPEG@ |
| 561 | LIBLCMS2 = @LIBLCMS2@ | ||
| 561 | LIBMODULES = @LIBMODULES@ | 562 | LIBMODULES = @LIBMODULES@ |
| 562 | LIBOBJS = @LIBOBJS@ | 563 | LIBOBJS = @LIBOBJS@ |
| 563 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ | 564 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ |
diff --git a/lib/intprops.h b/lib/intprops.h index 400ba5b9123..a34e81c7b5e 100644 --- a/lib/intprops.h +++ b/lib/intprops.h | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) | 26 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) |
| 27 | 27 | ||
| 28 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see | 28 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see |
| 29 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>. */ | 29 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>. */ |
| 30 | #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) | 30 | #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) |
| 31 | 31 | ||
| 32 | /* The extra casts in the following macros work around compiler bugs, | 32 | /* The extra casts in the following macros work around compiler bugs, |
| @@ -179,7 +179,7 @@ | |||
| 179 | /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. | 179 | /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. |
| 180 | See above for restrictions. Avoid && and || as they tickle | 180 | See above for restrictions. Avoid && and || as they tickle |
| 181 | bugs in Sun C 5.11 2010/08/13 and other compilers; see | 181 | bugs in Sun C 5.11 2010/08/13 and other compilers; see |
| 182 | <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>. */ | 182 | <https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>. */ |
| 183 | #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ | 183 | #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ |
| 184 | ((b) < 0 \ | 184 | ((b) < 0 \ |
| 185 | ? ((a) < 0 \ | 185 | ? ((a) < 0 \ |
| @@ -443,7 +443,7 @@ | |||
| 443 | implementation-defined result or signal for values outside T's | 443 | implementation-defined result or signal for values outside T's |
| 444 | range. However, code that works around this theoretical problem | 444 | range. However, code that works around this theoretical problem |
| 445 | runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: | 445 | runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: |
| 446 | http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html | 446 | https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html |
| 447 | As the compiler bug is real, don't try to work around the | 447 | As the compiler bug is real, don't try to work around the |
| 448 | theoretical problem. */ | 448 | theoretical problem. */ |
| 449 | 449 | ||
diff --git a/lib/signal.in.h b/lib/signal.in.h index 1d8ebfa57e7..9c32b14962f 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h | |||
| @@ -200,7 +200,7 @@ typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1]; | |||
| 200 | /* When also using extern inline, suppress the use of static inline in | 200 | /* When also using extern inline, suppress the use of static inline in |
| 201 | standard headers of problematic Apple configurations, as Libc at | 201 | standard headers of problematic Apple configurations, as Libc at |
| 202 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., | 202 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., |
| 203 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | 203 | <https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. |
| 204 | Perhaps Apple will fix this some day. */ | 204 | Perhaps Apple will fix this some day. */ |
| 205 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ | 205 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ |
| 206 | && (defined __i386__ || defined __x86_64__)) | 206 | && (defined __i386__ || defined __x86_64__)) |
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h index 0d606c19c84..8960333687e 100644 --- a/lib/stdio-impl.h +++ b/lib/stdio-impl.h | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ | 32 | /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ |
| 33 | 33 | ||
| 34 | # if defined __DragonFly__ /* DragonFly */ | 34 | # if defined __DragonFly__ /* DragonFly */ |
| 35 | /* See <http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/priv_stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>. */ | 35 | /* See <https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/lib/libc/stdio/priv_stdio.h>. */ |
| 36 | # define fp_ ((struct { struct __FILE_public pub; \ | 36 | # define fp_ ((struct { struct __FILE_public pub; \ |
| 37 | struct { unsigned char *_base; int _size; } _bf; \ | 37 | struct { unsigned char *_base; int _size; } _bf; \ |
| 38 | void *cookie; \ | 38 | void *cookie; \ |
| @@ -49,7 +49,7 @@ | |||
| 49 | fpos_t _offset; \ | 49 | fpos_t _offset; \ |
| 50 | /* More fields, not relevant here. */ \ | 50 | /* More fields, not relevant here. */ \ |
| 51 | } *) fp) | 51 | } *) fp) |
| 52 | /* See <http://www.dragonflybsd.org/cvsweb/src/include/stdio.h?rev=HEAD&content-type=text/x-cvsweb-markup>. */ | 52 | /* See <https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/include/stdio.h>. */ |
| 53 | # define _p pub._p | 53 | # define _p pub._p |
| 54 | # define _flags pub._flags | 54 | # define _flags pub._flags |
| 55 | # define _r pub._r | 55 | # define _r pub._r |
| @@ -60,7 +60,7 @@ | |||
| 60 | 60 | ||
| 61 | # if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __minix || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Minix 3, Android */ | 61 | # if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __minix || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Minix 3, Android */ |
| 62 | /* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> | 62 | /* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> |
| 63 | and <http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */ | 63 | and <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */ |
| 64 | struct __sfileext | 64 | struct __sfileext |
| 65 | { | 65 | { |
| 66 | struct __sbuf _ub; /* ungetc buffer */ | 66 | struct __sbuf _ub; /* ungetc buffer */ |
| @@ -81,7 +81,7 @@ | |||
| 81 | #ifdef __TANDEM /* NonStop Kernel */ | 81 | #ifdef __TANDEM /* NonStop Kernel */ |
| 82 | # ifndef _IOERR | 82 | # ifndef _IOERR |
| 83 | /* These values were determined by the program 'stdioext-flags' at | 83 | /* These values were determined by the program 'stdioext-flags' at |
| 84 | <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ | 84 | <https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ |
| 85 | # define _IOERR 0x40 | 85 | # define _IOERR 0x40 |
| 86 | # define _IOREAD 0x80 | 86 | # define _IOREAD 0x80 |
| 87 | # define _IOWRT 0x4 | 87 | # define _IOWRT 0x4 |
| @@ -132,7 +132,7 @@ struct _gl_real_FILE | |||
| 132 | # define fp_ ((struct _gl_real_FILE *) fp) | 132 | # define fp_ ((struct _gl_real_FILE *) fp) |
| 133 | 133 | ||
| 134 | /* These values were determined by a program similar to the one at | 134 | /* These values were determined by a program similar to the one at |
| 135 | <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ | 135 | <https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00165.html>. */ |
| 136 | # define _IOREAD 0x1 | 136 | # define _IOREAD 0x1 |
| 137 | # define _IOWRT 0x2 | 137 | # define _IOWRT 0x2 |
| 138 | # define _IORW 0x4 | 138 | # define _IORW 0x4 |
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 5cf31319d9f..066e08eba9a 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h | |||
| @@ -152,7 +152,7 @@ | |||
| 152 | /* When also using extern inline, suppress the use of static inline in | 152 | /* When also using extern inline, suppress the use of static inline in |
| 153 | standard headers of problematic Apple configurations, as Libc at | 153 | standard headers of problematic Apple configurations, as Libc at |
| 154 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., | 154 | least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., |
| 155 | <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. | 155 | <https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. |
| 156 | Perhaps Apple will fix this some day. */ | 156 | Perhaps Apple will fix this some day. */ |
| 157 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ | 157 | #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ |
| 158 | && defined __GNUC__ && defined __STDC__) | 158 | && defined __GNUC__ && defined __STDC__) |
| @@ -610,7 +610,7 @@ _GL_CXXALIAS_SYS (fwrite, size_t, | |||
| 610 | (const void *ptr, size_t s, size_t n, FILE *stream)); | 610 | (const void *ptr, size_t s, size_t n, FILE *stream)); |
| 611 | 611 | ||
| 612 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 | 612 | /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 |
| 613 | <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>, | 613 | <https://sourceware.org/bugzilla/show_bug.cgi?id=11959>, |
| 614 | which sometimes causes an unwanted diagnostic for fwrite calls. | 614 | which sometimes causes an unwanted diagnostic for fwrite calls. |
| 615 | This affects only function declaration attributes under certain | 615 | This affects only function declaration attributes under certain |
| 616 | versions of gcc and clang, and is not needed for C++. */ | 616 | versions of gcc and clang, and is not needed for C++. */ |
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 8a383b3d016..c1dd07ff8cd 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h | |||
| @@ -379,7 +379,7 @@ _GL_WARN_ON_USE (dup2, "dup2 is unportable - " | |||
| 379 | Close NEWFD first if it is open. | 379 | Close NEWFD first if it is open. |
| 380 | Return newfd if successful, otherwise -1 and errno set. | 380 | Return newfd if successful, otherwise -1 and errno set. |
| 381 | See the Linux man page at | 381 | See the Linux man page at |
| 382 | <http://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ | 382 | <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ |
| 383 | # if @HAVE_DUP3@ | 383 | # if @HAVE_DUP3@ |
| 384 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 384 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 385 | # define dup3 rpl_dup3 | 385 | # define dup3 rpl_dup3 |
| @@ -1149,7 +1149,7 @@ _GL_WARN_ON_USE (pipe, "pipe is unportable - " | |||
| 1149 | Store the read-end as fd[0] and the write-end as fd[1]. | 1149 | Store the read-end as fd[0] and the write-end as fd[1]. |
| 1150 | Return 0 upon success, or -1 with errno set upon failure. | 1150 | Return 0 upon success, or -1 with errno set upon failure. |
| 1151 | See also the Linux man page at | 1151 | See also the Linux man page at |
| 1152 | <http://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>. */ | 1152 | <https://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>. */ |
| 1153 | # if @HAVE_PIPE2@ | 1153 | # if @HAVE_PIPE2@ |
| 1154 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 1154 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1155 | # define pipe2 rpl_pipe2 | 1155 | # define pipe2 rpl_pipe2 |
diff --git a/lib/utimens.c b/lib/utimens.c index a5716ac8105..55545e8ce9b 100644 --- a/lib/utimens.c +++ b/lib/utimens.c | |||
| @@ -196,7 +196,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) | |||
| 196 | /* Some Linux-based NFS clients are buggy, and mishandle timestamps | 196 | /* Some Linux-based NFS clients are buggy, and mishandle timestamps |
| 197 | of files in NFS file systems in some cases. We have no | 197 | of files in NFS file systems in some cases. We have no |
| 198 | configure-time test for this, but please see | 198 | configure-time test for this, but please see |
| 199 | <http://bugs.gentoo.org/show_bug.cgi?id=132673> for references to | 199 | <https://bugs.gentoo.org/show_bug.cgi?id=132673> for references to |
| 200 | some of the problems with Linux 2.6.16. If this affects you, | 200 | some of the problems with Linux 2.6.16. If this affects you, |
| 201 | compile with -DHAVE_BUGGY_NFS_TIME_STAMPS; this is reported to | 201 | compile with -DHAVE_BUGGY_NFS_TIME_STAMPS; this is reported to |
| 202 | help in some cases, albeit at a cost in performance. But you | 202 | help in some cases, albeit at a cost in performance. But you |
| @@ -250,8 +250,8 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) | |||
| 250 | result = utimensat (AT_FDCWD, file, ts, 0); | 250 | result = utimensat (AT_FDCWD, file, ts, 0); |
| 251 | # ifdef __linux__ | 251 | # ifdef __linux__ |
| 252 | /* Work around a kernel bug: | 252 | /* Work around a kernel bug: |
| 253 | http://bugzilla.redhat.com/442352 | 253 | https://bugzilla.redhat.com/show_bug.cgi?id=442352 |
| 254 | http://bugzilla.redhat.com/449910 | 254 | https://bugzilla.redhat.com/show_bug.cgi?id=449910 |
| 255 | It appears that utimensat can mistakenly return 280 rather | 255 | It appears that utimensat can mistakenly return 280 rather |
| 256 | than -1 upon ENOSYS failure. | 256 | than -1 upon ENOSYS failure. |
| 257 | FIXME: remove in 2010 or whenever the offending kernels | 257 | FIXME: remove in 2010 or whenever the offending kernels |
| @@ -566,8 +566,8 @@ lutimens (char const *file, struct timespec const timespec[2]) | |||
| 566 | result = utimensat (AT_FDCWD, file, ts, AT_SYMLINK_NOFOLLOW); | 566 | result = utimensat (AT_FDCWD, file, ts, AT_SYMLINK_NOFOLLOW); |
| 567 | # ifdef __linux__ | 567 | # ifdef __linux__ |
| 568 | /* Work around a kernel bug: | 568 | /* Work around a kernel bug: |
| 569 | http://bugzilla.redhat.com/442352 | 569 | https://bugzilla.redhat.com/show_bug.cgi?id=442352 |
| 570 | http://bugzilla.redhat.com/449910 | 570 | https://bugzilla.redhat.com/show_bug.cgi?id=449910 |
| 571 | It appears that utimensat can mistakenly return 280 rather | 571 | It appears that utimensat can mistakenly return 280 rather |
| 572 | than -1 upon ENOSYS failure. | 572 | than -1 upon ENOSYS failure. |
| 573 | FIXME: remove in 2010 or whenever the offending kernels | 573 | FIXME: remove in 2010 or whenever the offending kernels |
diff --git a/m4/alloca.m4 b/m4/alloca.m4 index 7f0604cbdac..d1224316498 100644 --- a/m4/alloca.m4 +++ b/m4/alloca.m4 | |||
| @@ -44,12 +44,12 @@ AC_DEFUN([gl_FUNC_ALLOCA], | |||
| 44 | AC_DEFUN([gl_PREREQ_ALLOCA], [:]) | 44 | AC_DEFUN([gl_PREREQ_ALLOCA], [:]) |
| 45 | 45 | ||
| 46 | # This works around a bug in autoconf <= 2.68. | 46 | # This works around a bug in autoconf <= 2.68. |
| 47 | # See <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00277.html>. | 47 | # See <https://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00277.html>. |
| 48 | 48 | ||
| 49 | m4_version_prereq([2.69], [] ,[ | 49 | m4_version_prereq([2.69], [] ,[ |
| 50 | 50 | ||
| 51 | # This is taken from the following Autoconf patch: | 51 | # This is taken from the following Autoconf patch: |
| 52 | # http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=6cd9f12520b0d6f76d3230d7565feba1ecf29497 | 52 | # https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=6cd9f12520b0d6f76d3230d7565feba1ecf29497 |
| 53 | 53 | ||
| 54 | # _AC_LIBOBJ_ALLOCA | 54 | # _AC_LIBOBJ_ALLOCA |
| 55 | # ----------------- | 55 | # ----------------- |
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 00f960968b0..c08af18af68 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 | |||
| @@ -11,7 +11,7 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 11 | [/* Please see the Gnulib manual for how to use these macros. | 11 | [/* Please see the Gnulib manual for how to use these macros. |
| 12 | 12 | ||
| 13 | Suppress extern inline with HP-UX cc, as it appears to be broken; see | 13 | Suppress extern inline with HP-UX cc, as it appears to be broken; see |
| 14 | <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. | 14 | <https://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. |
| 15 | 15 | ||
| 16 | Suppress extern inline with Sun C in standards-conformance mode, as it | 16 | Suppress extern inline with Sun C in standards-conformance mode, as it |
| 17 | mishandles inline functions that call each other. E.g., for 'inline void f | 17 | mishandles inline functions that call each other. E.g., for 'inline void f |
| @@ -28,16 +28,16 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 28 | from calling static functions. This bug is known to occur on: | 28 | from calling static functions. This bug is known to occur on: |
| 29 | 29 | ||
| 30 | OS X 10.8 and earlier; see: | 30 | OS X 10.8 and earlier; see: |
| 31 | http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html | 31 | https://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html |
| 32 | 32 | ||
| 33 | DragonFly; see | 33 | DragonFly; see |
| 34 | http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log | 34 | http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log |
| 35 | 35 | ||
| 36 | FreeBSD; see: | 36 | FreeBSD; see: |
| 37 | http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html | 37 | https://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html |
| 38 | 38 | ||
| 39 | OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and | 39 | OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and |
| 40 | for clang but remains for g++; see <http://trac.macports.org/ticket/41033>. | 40 | for clang but remains for g++; see <https://trac.macports.org/ticket/41033>. |
| 41 | Assume DragonFly and FreeBSD will be similar. */ | 41 | Assume DragonFly and FreeBSD will be similar. */ |
| 42 | #if (((defined __APPLE__ && defined __MACH__) \ | 42 | #if (((defined __APPLE__ && defined __MACH__) \ |
| 43 | || defined __DragonFly__ || defined __FreeBSD__) \ | 43 | || defined __DragonFly__ || defined __FreeBSD__) \ |
diff --git a/m4/fstatat.m4 b/m4/fstatat.m4 index 75cf0110401..b29ec9258e9 100644 --- a/m4/fstatat.m4 +++ b/m4/fstatat.m4 | |||
| @@ -20,7 +20,7 @@ AC_DEFUN([gl_FUNC_FSTATAT], | |||
| 20 | HAVE_FSTATAT=0 | 20 | HAVE_FSTATAT=0 |
| 21 | else | 21 | else |
| 22 | dnl Test for an AIX 7.1 bug; see | 22 | dnl Test for an AIX 7.1 bug; see |
| 23 | dnl <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>. | 23 | dnl <https://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>. |
| 24 | AC_CACHE_CHECK([whether fstatat (..., 0) works], | 24 | AC_CACHE_CHECK([whether fstatat (..., 0) works], |
| 25 | [gl_cv_func_fstatat_zero_flag], | 25 | [gl_cv_func_fstatat_zero_flag], |
| 26 | [AC_RUN_IFELSE( | 26 | [AC_RUN_IFELSE( |
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 36f2acc5539..36da841287d 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 | |||
| @@ -228,13 +228,13 @@ m4_ifndef([AS_VAR_IF], | |||
| 228 | # This is like AC_PROG_CC_C99, except that | 228 | # This is like AC_PROG_CC_C99, except that |
| 229 | # - AC_PROG_CC_C99 did not exist in Autoconf versions < 2.60, | 229 | # - AC_PROG_CC_C99 did not exist in Autoconf versions < 2.60, |
| 230 | # - AC_PROG_CC_C99 does not mix well with AC_PROG_CC_STDC | 230 | # - AC_PROG_CC_C99 does not mix well with AC_PROG_CC_STDC |
| 231 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00367.html>, | 231 | # <https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00367.html>, |
| 232 | # but many more packages use AC_PROG_CC_STDC than AC_PROG_CC_C99 | 232 | # but many more packages use AC_PROG_CC_STDC than AC_PROG_CC_C99 |
| 233 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00441.html>. | 233 | # <https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00441.html>. |
| 234 | # Remaining problems: | 234 | # Remaining problems: |
| 235 | # - When AC_PROG_CC_STDC is invoked twice, it adds the C99 enabling options | 235 | # - When AC_PROG_CC_STDC is invoked twice, it adds the C99 enabling options |
| 236 | # to CC twice | 236 | # to CC twice |
| 237 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00431.html>. | 237 | # <https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00431.html>. |
| 238 | # - AC_PROG_CC_STDC is likely to change now that C11 is an ISO standard. | 238 | # - AC_PROG_CC_STDC is likely to change now that C11 is an ISO standard. |
| 239 | AC_DEFUN([gl_PROG_CC_C99], | 239 | AC_DEFUN([gl_PROG_CC_C99], |
| 240 | [ | 240 | [ |
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index eb89325519c..d10bcd08a0e 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # manywarnings.m4 serial 12 | 1 | # manywarnings.m4 serial 13 |
| 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, |
| @@ -267,18 +267,23 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], | |||
| 267 | 267 | ||
| 268 | # gcc --help=warnings outputs an unusual form for these options; list | 268 | # gcc --help=warnings outputs an unusual form for these options; list |
| 269 | # them here so that the above 'comm' command doesn't report a false match. | 269 | # them here so that the above 'comm' command doesn't report a false match. |
| 270 | # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal | 270 | # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal. |
| 271 | # and AC_COMPUTE_INT requires it to fit in a long: | 271 | # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on |
| 272 | # the only platforms where it does not fit in a long, so make that | ||
| 273 | # a special case. | ||
| 272 | AC_MSG_CHECKING([max safe object size]) | 274 | AC_MSG_CHECKING([max safe object size]) |
| 273 | AC_COMPUTE_INT([gl_alloc_max], | 275 | AC_COMPUTE_INT([gl_alloc_max], |
| 274 | [(LONG_MAX < PTRDIFF_MAX ? LONG_MAX : PTRDIFF_MAX) < (size_t) -1 | 276 | [LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1) |
| 275 | ? (LONG_MAX < PTRDIFF_MAX ? LONG_MAX : PTRDIFF_MAX) | 277 | ? -1 |
| 276 | : (size_t) -1], | 278 | : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1], |
| 277 | [[#include <limits.h> | 279 | [[#include <limits.h> |
| 278 | #include <stddef.h> | 280 | #include <stddef.h> |
| 279 | #include <stdint.h> | 281 | #include <stdint.h> |
| 280 | ]], | 282 | ]], |
| 281 | [gl_alloc_max=2147483647]) | 283 | [gl_alloc_max=2147483647]) |
| 284 | case $gl_alloc_max in | ||
| 285 | -1) gl_alloc_max=9223372036854775807;; | ||
| 286 | esac | ||
| 282 | AC_MSG_RESULT([$gl_alloc_max]) | 287 | AC_MSG_RESULT([$gl_alloc_max]) |
| 283 | gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" | 288 | gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" |
| 284 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" | 289 | gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" |
diff --git a/m4/std-gnu11.m4 b/m4/std-gnu11.m4 index bd34aa1a268..3c2f26f4666 100644 --- a/m4/std-gnu11.m4 +++ b/m4/std-gnu11.m4 | |||
| @@ -369,7 +369,7 @@ dnl just the module. Instead, define the (private) symbol | |||
| 369 | dnl _STDC_C99, which suppresses a bogus failure in <stdbool.h>. | 369 | dnl _STDC_C99, which suppresses a bogus failure in <stdbool.h>. |
| 370 | dnl The resulting compiler passes the test case here, and that's | 370 | dnl The resulting compiler passes the test case here, and that's |
| 371 | dnl good enough. For more, please see the thread starting at: | 371 | dnl good enough. For more, please see the thread starting at: |
| 372 | dnl http://lists.gnu.org/archive/html/autoconf/2010-12/msg00059.html | 372 | dnl https://lists.gnu.org/archive/html/autoconf/2010-12/msg00059.html |
| 373 | dnl Tru64 -c99 | 373 | dnl Tru64 -c99 |
| 374 | dnl with extended modes being tried first. | 374 | dnl with extended modes being tried first. |
| 375 | [[-std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99]], [$1], [$2])[]dnl | 375 | [[-std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99]], [$1], [$2])[]dnl |
| @@ -458,7 +458,7 @@ dnl preferably extc11. | |||
| 458 | # -------------- | 458 | # -------------- |
| 459 | # Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC, | 459 | # Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC, |
| 460 | # as that'd be incompatible with how Automake redefines AC_PROG_CC. See | 460 | # as that'd be incompatible with how Automake redefines AC_PROG_CC. See |
| 461 | # <http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>. | 461 | # <https://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>. |
| 462 | AU_DEFUN([AC_PROG_CC_C89], | 462 | AU_DEFUN([AC_PROG_CC_C89], |
| 463 | [AC_REQUIRE([AC_PROG_CC])], | 463 | [AC_REQUIRE([AC_PROG_CC])], |
| 464 | [$0 is obsolete; use AC_PROG_CC] | 464 | [$0 is obsolete; use AC_PROG_CC] |
diff --git a/m4/sys_types_h.m4 b/m4/sys_types_h.m4 index 34224d7705d..06268cfb2db 100644 --- a/m4/sys_types_h.m4 +++ b/m4/sys_types_h.m4 | |||
| @@ -40,7 +40,7 @@ AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS], | |||
| 40 | m4_version_prereq([2.70], [], [ | 40 | m4_version_prereq([2.70], [], [ |
| 41 | 41 | ||
| 42 | # This is taken from the following Autoconf patch: | 42 | # This is taken from the following Autoconf patch: |
| 43 | # https://git.sv.gnu.org/cgit/autoconf.git/commit/?id=e17a30e98 | 43 | # http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=e17a30e987d7ee695fb4294a82d987ec3dc9b974 |
| 44 | 44 | ||
| 45 | m4_undefine([AC_HEADER_MAJOR]) | 45 | m4_undefine([AC_HEADER_MAJOR]) |
| 46 | AC_DEFUN([AC_HEADER_MAJOR], | 46 | AC_DEFUN([AC_HEADER_MAJOR], |
diff --git a/m4/vararrays.m4 b/m4/vararrays.m4 index 8391121ad3f..38a3ed23542 100644 --- a/m4/vararrays.m4 +++ b/m4/vararrays.m4 | |||
| @@ -27,7 +27,7 @@ AC_DEFUN([AC_C_VARARRAYS], | |||
| 27 | [[/* Test for VLA support. This test is partly inspired | 27 | [[/* Test for VLA support. This test is partly inspired |
| 28 | from examples in the C standard. Use at least two VLA | 28 | from examples in the C standard. Use at least two VLA |
| 29 | functions to detect the GCC 3.4.3 bug described in: | 29 | functions to detect the GCC 3.4.3 bug described in: |
| 30 | http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html | 30 | https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html |
| 31 | */ | 31 | */ |
| 32 | #ifdef __STDC_NO_VLA__ | 32 | #ifdef __STDC_NO_VLA__ |
| 33 | syntax error; | 33 | syntax error; |