From: Alan Modra Date: Thu, 11 Jun 2020 06:18:12 +0000 (+0930) Subject: PR26107, Compilation failure in pdp11.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0aa30258af17ab0234951cbf9644837a99036e5;p=binutils-gdb.git PR26107, Compilation failure in pdp11.c PR 26107 * pdp11.c (is_stab): Replace legacy "index" function with "strchr". --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 688ffad01f6..6159d3aea3f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-06-11 Alan Modra + + PR 26107 + * pdp11.c (is_stab): Replace legacy "index" function with "strchr". + 2020-06-10 H.J. Lu * elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext. diff --git a/bfd/pdp11.c b/bfd/pdp11.c index fecaa21ef5f..c9b26c20523 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -336,8 +336,8 @@ static int is_stab (int type, const char *name) { if (type == N_GSYM || type == N_FUN) - return (index(name, ':') != NULL); - return (type > N_FUN); + return strchr (name, ':') != NULL; + return type > N_FUN; } static int