This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
pr15018 fix
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 16 Jan 2013 00:11:20 +1030
- Subject: pr15018 fix
Fixes a false positive warning. Applied mainline.
PR binutils/15018
* stabs.c (parse_stab_members): Always set physname here to avoid
gcc warning..
(parse_stab_argtypes): ..and don't duplicate the init here.
Index: binutils/stabs.c
===================================================================
RCS file: /cvs/src/src/binutils/stabs.c,v
retrieving revision 1.34
diff -u -p -r1.34 stabs.c
--- binutils/stabs.c 30 Mar 2012 12:51:07 -0000 1.34
+++ binutils/stabs.c 15 Jan 2013 08:26:52 -0000
@@ -2758,9 +2758,8 @@ parse_stab_members (void *dhandle, struc
argtypes string is the mangled form of the argument
types, and the full type and the physical name must be
extracted from them. */
- if (! stub)
- physname = argtypes;
- else
+ physname = argtypes;
+ if (stub)
{
debug_type class_type, return_type;
@@ -2879,9 +2878,7 @@ parse_stab_argtypes (void *dhandle, stru
|| CONST_STRNEQ (argtypes, "__dt"));
is_v3 = argtypes[0] == '_' && argtypes[1] == 'Z';
- if (is_destructor || is_full_physname_constructor || is_v3)
- *pphysname = argtypes;
- else
+ if (!(is_destructor || is_full_physname_constructor || is_v3))
{
unsigned int len;
const char *const_prefix;
--
Alan Modra
Australia Development Lab, IBM