binutils-gdb/gnulib/import
Simon Marchi b318629fe7 gnulib: update to bd11400942d6
Update the gnulib import to fixes these issues:

  - GDB build with clang + glibc < 2.33.

      https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=d6a07b4dc21b3118727743142c678858df442853
      https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00072.html

    With glibc < 2.33, gnulib (since relatively recently) enables a
    replacement for free (see gnulib/import/m4/free.m4).  In that path,
    clang shows this error:

        make[2]: Entering directory '/home/smarchi/build/binutils-gdb-clang/gdbsupport'
          CXX      agent.o
        In file included from /home/smarchi/src/binutils-gdb/gdbsupport/agent.cc:20:
        In file included from /home/smarchi/src/binutils-gdb/gdbsupport/common-defs.h:95:
        ../gnulib/import/string.h:636:19: error: exception specification in declaration does not match previous declaration
        _GL_EXTERN_C void free (void *) throw ();
                          ^
        ../gnulib/import/stdlib.h:737:17: note: expanded from macro 'free'
        #   define free rpl_free
                        ^
        ../gnulib/import/stdlib.h:739:1: note: previous declaration is here
        _GL_FUNCDECL_RPL (free, void, (void *ptr));
        ^
        ../gnulib/import/sys/select.h:251:23: note: expanded from macro '_GL_FUNCDECL_RPL'
          _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
                              ^
        <scratch space>:139:1: note: expanded from here
        rpl_free
        ^

    The gnulib commit mentioned fixes the exception specification of `free`.

 - GDB build on RHEL 7:

      CC       libgnu_a-openat-proc.o
    In file included from /usr/include/string.h:633,
                     from ./string.h:41,
                     from ../../../binutils-gdb/gnulib/import/openat-proc.c:30:
    ./string.h:1105:1: error: expected identifier or '(' before '__extension__'
     1105 | _GL_FUNCDECL_SYS (strndup, char *,
          | ^~~~~~~~~~~~~~~~

     https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=84863a1c4dc8cca8fb0f6f670f67779cdd2d543b
     https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00075.html

Change-Id: Ibd51302feece6f385d0c53e0d08921b5d95e2776
2022-05-02 10:54:19 -04:00
..
extra
glthread
m4
malloc
_Noreturn.h
accept.c
alloca.c
alloca.in.h
arg-nonnull.h
arpa_inet.in.h
assure.h
at-func.c
attribute.h
basename-lgpl.c
basename-lgpl.h
bind.c
btowc.c
c++defs.h
canonicalize-lgpl.c
cdefs.h
chdir-long.c
chdir-long.h
chown.c
cloexec.c
cloexec.h
close.c
closedir.c
connect.c
count-one-bits.c
count-one-bits.h
ctype.in.h
dirent-private.h
dirent.in.h
dirfd.c
dirname-lgpl.c
dirname.h
dup2.c
dup-safer-flag.c
dup-safer.c
dup.c
eloop-threshold.h
errno.in.h
error.c
error.h
exitfail.c
exitfail.h
fchdir.c
fchown-stub.c
fcntl.c
fcntl.in.h
fd-hook.c
fd-hook.h
fd-safer-flag.c
fd-safer.c
fdopendir.c
ffs.c
filename.h
filenamecat-lgpl.c
filenamecat.h
flexmember.h
float.c
float.in.h
float+.h
fnmatch_loop.c
fnmatch.c
fnmatch.in.h
fpucw.h
free.c
frexp.c
frexpl.c
fstat.c
fstatat.c
getcwd-lgpl.c
getcwd.c
getdelim.c
getdtablesize.c
getline.c
getlogin_r.c
getprogname.c
getprogname.h
getrandom.c
gettext.h
gettimeofday.c
glob_internal.h
glob_pattern_p.c
glob-libc.h
glob.c
glob.in.h
globfree.c
hard-locale.c
hard-locale.h
idx.h
inet_ntop.c
intprops.h
inttypes.in.h
isblank.c
isnan.c
isnand-nolibm.h
isnand.c
isnanl-nolibm.h
isnanl.c
itold.c
lc-charset-dispatch.c
lc-charset-dispatch.h
libc-config.h
limits.in.h
listen.c
localcharset.c
localcharset.h
locale.in.h
lstat.c
Makefile.am
Makefile.in
malloc.c
malloca.c
malloca.h
math.c
math.in.h
mbrtowc-impl-utf8.h
mbrtowc-impl.h
mbrtowc.c
mbsinit.c
mbsrtowcs-impl.h
mbsrtowcs-state.c
mbsrtowcs.c
mbtowc-impl.h
mbtowc-lock.c
mbtowc-lock.h
mbtowc.c
memchr.c
memchr.valgrind
memmem.c
mempcpy.c
memrchr.c
minmax.h
mkdir.c
mkdtemp.c
mkostemp.c
msvc-inval.c
msvc-inval.h
msvc-nothrow.c
msvc-nothrow.h
netdb.in.h
netinet_in.in.h
open.c
openat-die.c
openat-priv.h
openat-proc.c
openat.c
openat.h
opendir.c
pathmax.h
pipe-safer.c
pipe.c
rawmemchr.c
rawmemchr.valgrind
readdir.c
readlink.c
realloc.c
rename.c
rewinddir.c
rmdir.c
same-inode.h
save-cwd.c
save-cwd.h
scratch_buffer.h
select.c
setenv.c
setlocale_null.c
setlocale_null.h
setlocale-lock.c
setsockopt.c
signal.in.h
socket.c
sockets.c
sockets.h
stat-time.c
stat-time.h
stat-w32.c
stat-w32.h
stat.c
stdalign.in.h
stdbool.in.h
stddef.in.h
stdint.in.h
stdio-read.c
stdio-write.c
stdio.in.h
stdlib.in.h
str-two-way.h
strchrnul.c
strchrnul.valgrind
strdup.c
streq.h
strerror_r.c
strerror-override.c
strerror-override.h
strerror.c
string.in.h
strings.in.h
stripslash.c
strnlen1.c
strnlen1.h
strnlen.c
strstr.c
strtok_r.c
sys_random.in.h
sys_select.in.h
sys_socket.c
sys_socket.in.h
sys_stat.in.h
sys_time.in.h
sys_types.in.h
sys_uio.in.h
sys_wait.in.h
tempname.c
tempname.h
time_r.c
time.in.h
unistd--.h
unistd-safer.h
unistd.c
unistd.in.h
unsetenv.c
verify.h
w32sock.h
warn-on-use.h
wchar.in.h
wctype-h.c
wctype.in.h
windows-initguard.h
windows-mutex.c
windows-mutex.h
windows-once.c
windows-once.h
windows-recmutex.c
windows-recmutex.h
windows-rwlock.c
windows-rwlock.h
wmemchr-impl.h
wmemchr.c
wmempcpy.c
xalloc-oversized.h