diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-10 00:24:52 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-10 00:24:52 +0000 |
commit | db80fc3f1add0d1d105ce7569fb6fbedebf40b7f (patch) | |
tree | 2b6609917b3fbd2025fcdb94fb3fac7f8b42e73b /libiberty | |
parent | 4f470a3bd4480b344b812d934574f55918305fe0 (diff) | |
download | gcc-db80fc3f1add0d1d105ce7569fb6fbedebf40b7f.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c3d8f196b27..effb327ea22 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2010-01-09 Ian Lance Taylor <iant@google.com> + + PR other/42230 + * cp-demangle.c (d_demangle): Return dgs.alc on success. + 2010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> PR target/42316 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; } |