From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.osci.io (polly.osci.io [8.43.85.229]) by sourceware.org (Postfix) with ESMTPS id EEB2E3857C43 for ; Sat, 11 Jul 2020 04:12:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EEB2E3857C43 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gdb-buildbot.osci.io Authentication-Results: sourceware.org; spf=none smtp.mailfrom=SRS0=UxRj=AW=gdb-buildbot.osci.io=gdb-buildbot@osci.io Received: by mx1.osci.io (Postfix, from userid 994) id C662C21396; Sat, 11 Jul 2020 00:12:07 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 Received: from gdb-buildbot.osci.io (gdb-buildbot.osci.io [8.43.85.197]) by mx1.osci.io (Postfix) with ESMTP id 345B721396 for ; Sat, 11 Jul 2020 00:12:04 -0400 (EDT) Received: from gdb-buildbot.osci.io (localhost [IPv6:::1]) by gdb-buildbot.osci.io (Postfix) with ESMTP id 183675B1 for ; Sat, 11 Jul 2020 00:12:04 -0400 (EDT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] PR26107, Compilation failure in pdp11.c From: gdb-buildbot@gdb-buildbot.osci.io To: gdb-testers@sourceware.org Message-Id: Date: Sat, 11 Jul 2020 00:12:04 -0400 (EDT) X-BeenThere: gdb-testers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-testers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2020 04:12:09 -0000 *** TEST RESULTS FOR COMMIT f0aa30258af17ab0234951cbf9644837a99036e5 *** commit f0aa30258af17ab0234951cbf9644837a99036e5 Author: Alan Modra AuthorDate: Thu Jun 11 15:48:12 2020 +0930 Commit: Alan Modra CommitDate: Thu Jun 11 15:50:33 2020 +0930 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 688ffad01f..6159d3aea3 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 fecaa21ef5..c9b26c2052 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