diff options
author | jkratoch <jkratoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-13 22:34:19 +0000 |
---|---|---|
committer | jkratoch <jkratoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-13 22:34:19 +0000 |
commit | be03abe8c7dc65fca956fec4507b11f0184ac547 (patch) | |
tree | 58e4b1a3d20615fe8e402f9ff37465ba7876cd3c /libiberty/cp-demangle.c | |
parent | 932501f94a46dbc8dc4a6bf3ceb7eaa1640181f2 (diff) | |
download | gcc-be03abe8c7dc65fca956fec4507b11f0184ac547.tar.gz |
libiberty/
* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
Suppress d_print_mod for DMGL_RET_POSTFIX.
* testsuite/demangle-expected: New testcases for --ret-postfix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r-- | libiberty/cp-demangle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index da6d7979f2c..3fc52660153 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -3922,7 +3922,10 @@ d_print_comp (struct d_print_info *dpi, int options, dc, dpi->modifiers); /* Print return type if present */ - if (d_left (dc) != NULL && (options & DMGL_RET_DROP) == 0) + if (d_left (dc) != NULL && (options & DMGL_RET_POSTFIX) != 0) + d_print_comp (dpi, options & ~(DMGL_RET_POSTFIX | DMGL_RET_DROP), + d_left (dc)); + else if (d_left (dc) != NULL && (options & DMGL_RET_DROP) == 0) { struct d_print_mod dpm; |