From: Alan Modra Date: Wed, 17 May 2017 23:37:26 +0000 (+0930) Subject: Fix compile time warning about pointer comparison. X-Git-Tag: users/ARM/embedded-binutils-2_28-branch-2017q2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1663acb165d6f3f17a21750e1b1140005d5a25f0;p=thirdparty%2Fbinutils-gdb.git Fix compile time warning about pointer comparison. PR 21034 * stabs.c (parse_stab_members): Fix thinko checking for g++ version 1 stabs information. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f21867f98c5..431822add95 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2017-05-18 Alan Modra + + Apply from master + 2017-01-10 Nick Clifton + PR 21034 + * stabs.c (parse_stab_members): Fix thinko checking for g++ + version 1 stabs information. + 2017-03-02 Tristan Gingold * configure: Regenerate. diff --git a/binutils/stabs.c b/binutils/stabs.c index f5c5d2d8e0f..d3fc4afe242 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -2702,7 +2702,7 @@ parse_stab_members (void *dhandle, struct stab_handle *info, ++*pp; voffset &= 0x7fffffff; - if (**pp == ';' || *pp == '\0') + if (**pp == ';' || **pp == '\0') { /* Must be g++ version 1. */ context = DEBUG_TYPE_NULL;