summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-03-04 00:55:25 +0000
committerDJ Delorie <dj@redhat.com>2002-03-04 00:55:25 +0000
commit6e9980f54df6cf81d20788b616b9e474b41f82d5 (patch)
tree6fc8cc42a1c52a5f0fd32faf5e6e961c74be86d0 /libiberty
parent12eed87b7c148065f4a8dcddab42807afdc471be (diff)
downloadbinutils-6e9980f54df6cf81d20788b616b9e474b41f82d5.tar.gz
binutils-6e9980f54df6cf81d20788b616b9e474b41f82d5.tar.bz2
binutils-6e9980f54df6cf81d20788b616b9e474b41f82d5.zip
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/xmalloc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index e46c71128e8..04250b718db 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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,
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c
index bf0cf2d6ed4..433fd5ce3f3 100644
--- a/libiberty/xmalloc.c
+++ b/libiberty/xmalloc.c
@@ -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 */