merge from gcc
authorDJ Delorie <dj@redhat.com>
Thu, 13 Dec 2001 00:05:32 +0000 (00:05 +0000)
committerDJ Delorie <dj@redhat.com>
Thu, 13 Dec 2001 00:05:32 +0000 (00:05 +0000)
libiberty/ChangeLog
libiberty/cplus-dem.c
libiberty/testsuite/demangle-expected

index b816727f08da8dab931fed3929895a2f37cabd7f..3537caeb1659b76bab10cbc29938cf76095a57ce 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
+
+       PR other/2719
+       * cplus-dem.c (consume_count): Treat negative count as an error.
+       * testsuite/demangle-expected: Added testcase.
+
 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
 
        * configure.in: Hardcode that vfork works on VMS host.
index a35ff14624e65d58e949c6bb2e8982bbb952e8b5..159f8d5aef02f020109c577694626c1b78329b4d 100644 (file)
@@ -574,6 +574,9 @@ consume_count (type)
       (*type)++;
     }
 
+  if (count < 0)
+    count = -1;
+
   return (count);
 }
 
index 4953c7d11032cf598456d29bfc629dab1cf18da8..3a828472de11d0fc182f803e181fc15072bc67c6 100644 (file)
@@ -2586,3 +2586,7 @@ JArray.t(JArray[])
 --format=java
 _ZN4Prim1iEibcdfwPN4java4lang6StringEsx
 Prim.i(int, boolean, byte, double, float, char, java.lang.String, short, long)
+#
+--format=hp
+_Utf58_0_1__1_2147483647__2147483648
+_Utf58_0_1__1_2147483647__2147483648