merge from gcc
authorDJ Delorie <dj@redhat.com>
Mon, 4 Mar 2002 00:55:25 +0000 (00:55 +0000)
committerDJ Delorie <dj@redhat.com>
Mon, 4 Mar 2002 00:55:25 +0000 (00:55 +0000)
libiberty/ChangeLog
libiberty/xmalloc.c

index e46c71128e8792de1e79133b4fa1d11d9cd28d82..04250b718db4b6542f2e40c4f0b2261d0db1b700 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * xmalloc.c (xmalloc_fail): Clarify error message.
+
 2002-02-21  Jim Blandy  <jimb@redhat.com>
 
        * splay-tree.c (splay_tree_xmalloc_allocate,
index bf0cf2d6ed4d546349e5ab480143ebaaf4113cca..433fd5ce3f3e393aa44c120b5d027808bb125e96 100644 (file)
@@ -120,12 +120,12 @@ xmalloc_failed (size)
   else
     allocated = (char *) sbrk (0) - (char *) &environ;
   fprintf (stderr,
-          "\n%s%sCannot allocate %lu bytes after allocating %lu bytes\n",
+          "\n%s%sout of memory allocating %lu bytes after allocating %lu bytes\n",
           name, *name ? ": " : "",
           (unsigned long) size, (unsigned long) allocated);
 #else /* HAVE_SBRK */
   fprintf (stderr,
-          "\n%s%sCannot allocate %lu bytes\n",
+          "\n%s%sout of memory allocating %lu bytes\n",
           name, *name ? ": " : "",
           (unsigned long) size);
 #endif /* HAVE_SBRK */