mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:54:41 +08:00
PR26107, Compilation failure in pdp11.c
PR 26107 * pdp11.c (is_stab): Replace legacy "index" function with "strchr".
This commit is contained in:
parent
fd17d1e695
commit
f0aa30258a
@ -1,3 +1,8 @@
|
||||
2020-06-11 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 26107
|
||||
* pdp11.c (is_stab): Replace legacy "index" function with "strchr".
|
||||
|
||||
2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user