binutils-gdb/gnulib/import/m4
Simon Marchi 5f661e0397 gnulib: import count-one-bits module and use it
For a fix I intend to submit, I would need a function that counts the
number of set bits in a word.  There is  __builtin_popcount that is
supported by gcc and clang, but there is also a gnulib module that wraps
that and provides a fallback for other compilers, so I think it would be
good to use it.

I also noticed that there is a bitcount function in arch/arm.c, so I
thought that as a first step I would replace that one with the gnulib
count-one-bits module.  This is what this patch does.

The gnulib module provides multiple functions, with various parameter
length (unsigned int, unsigned long int, unsigned long long int), I
chose the one that made sense for each call site based on the argument
type.

gnulib/ChangeLog:

	* update-gnulib.sh (IMPORTED_GNULIB_MODULES): Import
	count-one-bits module.
	* configure: Re-generate.
	* aclocal.m4: Re-generate.
	* Makefile.in: Re-generate.
	* import/count-one-bits.c: New file.
	* import/count-one-bits.h: New file.
	* import/Makefile.am: Re-generate.
	* import/Makefile.in: Re-generate.
	* import/m4/gnulib-cache.m4: Re-generate.
	* import/m4/gnulib-comp.m4: Re-generate.
	* import/m4/count-one-bits.m4: New file.

gdb/ChangeLog:

	* arm-tdep.c: Include count-one-bits.h.
	(cleanup_block_store_pc): Use count_one_bits.
	(cleanup_block_load_pc): Use count_one_bits.
	(arm_copy_block_xfer): Use count_one_bits.
	(thumb2_copy_block_xfer): Use count_one_bits.
	(thumb_copy_pop_pc_16bit): Use count_one_bits.
	* arch/arm-get-next-pcs.c: Include count-one-bits.h.
	(thumb_get_next_pcs_raw): Use count_one_bits.
	(arm_get_next_pcs_raw): Use count_one_bits_l.
	* arch/arm.c (bitcount): Remove.
	* arch/arm.h (bitcount): Remove.
2020-02-14 14:41:07 -05:00
..
00gnulib.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
__inline.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
absolute-header.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
alloca.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
arpa_inet_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
builtin-expect.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
canonicalize.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
chdir-long.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
close.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
closedir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
codeset.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
count-one-bits.m4 gnulib: import count-one-bits module and use it 2020-02-14 14:41:07 -05:00
d-ino.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
d-type.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
dirent_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
dirfd.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
dirname.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
double-slash-root.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
dup.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
dup2.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
eealloc.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
environ.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
errno_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
error.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
exponentd.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
exponentl.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
extensions.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
extern-inline.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fchdir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fcntl-o.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fcntl.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fcntl_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fdopendir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
filenamecat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
flexmember.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
float_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fnmatch.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fnmatch_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fpieee.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
frexp.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
frexpl.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fstat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
fstatat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getcwd-abort-bug.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getcwd-path-max.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getcwd.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getdtablesize.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getlogin.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getlogin_r.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getpagesize.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
getprogname.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
gettimeofday.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
glob.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
glob_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
gnulib-cache.m4 gnulib: import count-one-bits module and use it 2020-02-14 14:41:07 -05:00
gnulib-common.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
gnulib-comp.m4 gnulib: import count-one-bits module and use it 2020-02-14 14:41:07 -05:00
gnulib-tool.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
host-cpu-c-abi.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
include_next.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
inet_ntop.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
inttypes-pri.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
inttypes.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
isnand.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
isnanl.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
largefile.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
lib-ld.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
lib-link.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
lib-prefix.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
limits-h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
localcharset.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
locale-fr.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
locale-ja.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
locale-zh.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
localtime-buffer.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
lock.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
longlong.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
lstat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
malloc.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
malloca.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
math_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mbrtowc.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mbsinit.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mbsrtowcs.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mbstate_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
memchr.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
memmem.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mempcpy.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
memrchr.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mkdir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mkdtemp.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mkostemp.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mmap-anon.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
mode_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
msvc-inval.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
msvc-nothrow.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
multiarch.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
netinet_in_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
nocrash.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
off_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
open-cloexec.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
open-slash.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
open.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
openat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
opendir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
pathmax.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
pthread_rwlock_rdlock.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
rawmemchr.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
readdir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
readlink.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
realloc.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
rename.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
rewinddir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
rmdir.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
save-cwd.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
setenv.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
signal_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
socklen.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sockpfaf.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
ssize_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stat-time.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stat.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
std-gnu11.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stdalign.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stdbool.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stddef_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stdint.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stdio_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
stdlib_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strchrnul.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strdup.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strerror.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strerror_r.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
string_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strstr.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
strtok_r.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sys_socket_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sys_stat_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sys_time_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sys_types_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
sys_uio_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
tempname.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
threadlib.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
time_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
time_r.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
unistd-safer.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
unistd_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
warn-on-use.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
wchar_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
wchar_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
wctype_h.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00
wint_t.m4 Update Gnulib to the latest git version 2019-12-16 12:20:50 -06:00