binutils-gdb/gnulib/import/m4
Tom Tromey d706b69e48 Do not adjust mtime timezone on Windows
PR win32/25302 notes that gdb will crash when trying to "run" even a
simple program on Windows.  The essential bug here is that the BFD
cache can easily be corrupted -- I have sent a separate patch for
that.

The particular reason that the cache is corrupted on Windows is that
gnulib overrides "stat" to make it do timezone adjustment -- but BFD
does not use this version of stat.  The difference here triggers the
latent cache bug, but can also cause other bugs as well; in particular
it can cause spurious warnings about source files being newer.

This patch simply removes the stat override on mingw, making gnulib
and BFD agree.

I tested this by backing out the local AdaCore changes to work around
this bug and then verifying that I could reproduce it.  Then, I
applied this patch and verified that "run" works again.

2020-09-08  Tom Tromey  <tromey@adacore.com>

	PR win32/25302:
	* update-gnulib.sh: Apply stat patch.
	* patches/0001-use-windows-stat: New file.
	* import/m4/stat.m4: Update.
	* configure: Rebuild.
2020-09-08 10:41:03 -06:00
..
__inline.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
00gnulib.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
absolute-header.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
alloca.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
arpa_inet_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
btowc.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
builtin-expect.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
canonicalize.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
chdir-long.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
close.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
closedir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
codeset.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
ctype.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
d-ino.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
d-type.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dirent_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dirfd.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dirname.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
double-slash-root.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dup2.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
dup.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
eealloc.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
environ.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
errno_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
error.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
exponentd.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
exponentl.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
extensions.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
extern-inline.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fchdir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fcntl_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fcntl-o.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fcntl.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fdopendir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
filenamecat.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
flexmember.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
float_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fnmatch_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fnmatch.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
fpieee.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
frexp.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
frexpl.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fstat.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
fstatat.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getcwd-abort-bug.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getcwd-path-max.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getcwd.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getdtablesize.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getlogin_r.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getlogin.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getpagesize.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getprogname.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
getrandom.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gettimeofday.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
glob.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gnulib-cache.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gnulib-common.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gnulib-comp.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
gnulib-tool.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
include_next.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
inet_ntop.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
inttypes-pri.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
inttypes.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
isblank.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
isnand.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
isnanl.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
largefile.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
limits-h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
localcharset.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
locale_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
locale-fr.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
locale-ja.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
locale-zh.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
localtime-buffer.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
lock.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
lstat.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
malloc.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
malloca.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
math_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbrtowc.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbsinit.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbsrtowcs.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbstate_t.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mbtowc.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
memchr.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
memmem.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mempcpy.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
memrchr.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
minmax.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
mkdir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mkdtemp.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mkostemp.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mmap-anon.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
mode_t.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-inval.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
msvc-nothrow.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
multiarch.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
netinet_in_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
nocrash.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
off_t.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
open-cloexec.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
open-slash.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
open.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
openat.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
opendir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
pathmax.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
pthread_rwlock_rdlock.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rawmemchr.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
readdir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
readlink.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
realloc.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rename.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rewinddir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
rmdir.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
save-cwd.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
setenv.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
setlocale_null.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
signal_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
socklen.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sockpfaf.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
ssize_t.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stat-time.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stat.m4 Do not adjust mtime timezone on Windows 2020-09-08 10:41:03 -06:00
std-gnu11.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdalign.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdbool.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stddef_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdint.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
stdio_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
stdlib_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
strchrnul.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strdup.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror_r.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strerror.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
string_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
strnlen.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
strstr.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
strtok_r.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_random_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_socket_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_stat_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
sys_time_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_types_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
sys_uio_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
tempname.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
threadlib.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
time_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
time_r.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
unistd_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
unistd-safer.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
visibility.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
warn-on-use.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
wchar_h.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wchar_t.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
wctype_h.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00
wint_t.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wmemchr.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
wmempcpy.m4 Update gnulib to current trunk 2020-08-26 15:37:28 -07:00
zzgnulib.m4 gdb: update gnulib import 2020-02-22 20:37:18 -05:00