Return dgs.alc on success
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 10 Jan 2010 01:19:02 +0000 (01:19 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 10 Jan 2010 01:19:02 +0000 (01:19 +0000)
2010-01-09  Ian Lance Taylor  <iant@google.com>

PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.

libiberty/ChangeLog
libiberty/cp-demangle.c

index c3d8f196b27f06d2db8eb3c755429f432803d1f1..effb327ea225c00e6f17920a2eac41b03189d00d 100644 (file)
@@ -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
index 43cf34a36cf2c9ff8cd3b4ebe2c6b826fa554238..d37c90efc2ddc0955f36c653a8f2824c078d209d 100644 (file)
@@ -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;
 }
 
This page took 0.032801 seconds and 4 git commands to generate.