diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2010-01-09 16:24:52 -0800 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-01-09 16:24:52 -0800 |
commit | 9b2adcdbc12edf30eb4bedcff79f8f9050c7f29a (patch) | |
tree | 2b6609917b3fbd2025fcdb94fb3fac7f8b42e73b /libiberty/cp-demangle.c | |
parent | be24b7fbd0049a13ab667c55598d7ad71c334f83 (diff) | |
download | gcc-9b2adcdbc12edf30eb4bedcff79f8f9050c7f29a.tar.gz |
Return dgs.alc on success
libiberty/
2010-01-09 Ian Lance Taylor <iant@google.com>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
libstdc++-v3/
2010-01-09 H.J. Lu <hongjiu.lu@intel.com>
PR other/42230
* testsuite/abi/pr42230.cc: New.
From-SVN: r155785
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r-- | libiberty/cp-demangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 43cf34a36cf..d37c90efc2d 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -4777,7 +4777,7 @@ d_demangle (const char *mangled, int options, size_t *palc) return NULL; } - *palc = dgs.allocation_failure ? 1 : 0; + *palc = dgs.allocation_failure ? 1 : dgs.alc; return dgs.buf; } |