aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-06-26 10:04:41 +0100
committerNick Clifton <nickc@redhat.com>2020-06-26 10:06:48 +0100
commit87fce92c5c3660a08172a9e29faf54573cedd9ae (patch)
tree068e19655a84ef679c80d328794c1bea54734bab /include
parentd61ffe124430160c4da7516596d6a4dbcdf2a7a6 (diff)
downloadgcc-87fce92c5c3660a08172a9e29faf54573cedd9ae.zip
gcc-87fce92c5c3660a08172a9e29faf54573cedd9ae.tar.gz
gcc-87fce92c5c3660a08172a9e29faf54573cedd9ae.tar.bz2
This patch removes the use of the "register" keyword from the bsearch() and bsearch_r() functions supplied by libiberty. The register keyword is deprecated in C++17.
2020-06-25 Nick Clifton <nickc@redhat.com> include/ * libiberty.h (bsearch_r): Remove use of the register keyword from the prototype. libiberty/ * bsearch.c (bsearch): Remove use of register keyword. * bsearch_r.c (bsearch_r): Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/libiberty.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 0bb5b81..591e9ac 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -643,9 +643,9 @@ extern int pwait (int, int *, int);
/* Like bsearch, but takes and passes on an argument like qsort_r. */
-extern void *bsearch_r (register const void *, const void *,
- size_t, register size_t,
- register int (*)(const void *, const void *, void *),
+extern void *bsearch_r (const void *, const void *,
+ size_t, size_t,
+ int (*)(const void *, const void *, void *),
void *);
#if defined(HAVE_DECL_ASPRINTF) && !HAVE_DECL_ASPRINTF