aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-06-25 11:16:42 +0100
committerNick Clifton <nickc@redhat.com>2020-06-25 11:16:42 +0100
commit6248d9d647708606f8f79f42fdf96757cd09c963 (patch)
tree7a4c03bc134f099e5c513843ad0683ad6ef7091e
parentb59d128a112d441c657195939340698548862cec (diff)
downloadgdb-6248d9d647708606f8f79f42fdf96757cd09c963.zip
gdb-6248d9d647708606f8f79f42fdf96757cd09c963.tar.gz
gdb-6248d9d647708606f8f79f42fdf96757cd09c963.tar.bz2
Remove the use of the register keyword in the libiberty.h header file - it is deprecated and incompatible with C++17.
* libiberty.h (bsearch_r): Remove use of the register keyword from the prototype.
-rw-r--r--include/ChangeLog5
-rw-r--r--include/libiberty.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 2251679..8e06abf 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-25 Nick Clifton <nickc@redhat.com>
+
+ * libiberty.h (bsearch_r): Remove use of the register keyword from
+ the prototype.
+
2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
Sync with GCC
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