diff --git a/lib/.gitignore b/lib/.gitignore
index d0227fe..4ce8259 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -1,5 +1,6 @@
 Makefile.am
 
+/_Noreturn.h
 /btowc.c
 /c-ctype.c
 /c-ctype.h
@@ -9,6 +10,11 @@ Makefile.am
 /config.charset
 /crc.c
 /crc.h
+/getopt-cdefs.in.h
+/getopt-core.h
+/getopt-ext.h
+/getopt-pfx-core.h
+/getopt-pfx-ext.h
 /getopt.c
 /getopt.in.h
 /getopt1.c
@@ -30,6 +36,8 @@ Makefile.am
 /localcharset.c
 /localcharset.h
 /locale.in.h
+/localtime-buffer.c
+/localtime-buffer.h
 /mbrtowc.c
 /mbsinit.c
 /mbsrtowcs-impl.h
diff --git a/m4/.gitignore b/m4/.gitignore
index 2c36b31..de872f6 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -2,6 +2,7 @@
 /absolute-header.m4
 /assert.m4
 /btowc.m4
+/builtin-expect.m4
 /codeset.m4
 /config-h.m4
 /configmake.m4
@@ -40,6 +41,7 @@
 /locale-ja.m4
 /locale-zh.m4
 /locale_h.m4
+/localtime-buffer.m4
 /lock.m4
 /longlong.m4
 /mbrtowc.m4
diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4
index 2f6308c..dbbdadf 100644
--- a/m4/gnulib-cache.m4
+++ b/m4/gnulib-cache.m4
@@ -1,4 +1,4 @@
-# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+# Copyright (C) 2002-2017 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by