diff options
author | Alan Modra <amodra@gmail.com> | 2013-01-15 13:41:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-01-15 13:41:05 +0000 |
commit | cb566e3aa895881045a4bd1fbcb5154637fb9ded (patch) | |
tree | 469e4b4940fc99cd8cd6d9637971ac494133169a /binutils/stabs.c | |
parent | dd42f060364b48544301451a4b68e01bc978b281 (diff) | |
download | gdb-cb566e3aa895881045a4bd1fbcb5154637fb9ded.zip gdb-cb566e3aa895881045a4bd1fbcb5154637fb9ded.tar.gz gdb-cb566e3aa895881045a4bd1fbcb5154637fb9ded.tar.bz2 |
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.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r-- | binutils/stabs.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index 04c3452..8b45977 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -2758,9 +2758,8 @@ parse_stab_members (void *dhandle, struct stab_handle *info, 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, struct stab_handle *info, || 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; |