From: H.J. Lu Date: Sun, 10 Jan 2010 01:19:02 +0000 (+0000) Subject: Return dgs.alc on success X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffe7cfdf3170254a6bc8c5f5e9f946005b923165;p=binutils-gdb.git Return dgs.alc on success 2010-01-09 Ian Lance Taylor PR other/42230 * cp-demangle.c (d_demangle): Return dgs.alc on success. --- 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 + + PR other/42230 + * cp-demangle.c (d_demangle): Return dgs.alc on success. + 2010-01-04 Nobuhiro Iwamatsu 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; }