summaryrefslogtreecommitdiff
path: root/libiberty/xmalloc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-09-27 20:27:58 +0000
committerDJ Delorie <dj@delorie.com>2001-09-27 20:27:58 +0000
commita162569b0652c18ecdcdb77a14b388c05067c4db (patch)
tree6e3fea1bfb452f52113c9a21fc0ee1e3f6568eb6 /libiberty/xmalloc.c
parent4666a5a22845b7e95321df0ca346fcf324062e39 (diff)
downloadgdb-a162569b0652c18ecdcdb77a14b388c05067c4db.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r--libiberty/xmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c
index cb923d96f64..3fc23a91c7a 100644
--- a/libiberty/xmalloc.c
+++ b/libiberty/xmalloc.c
@@ -22,7 +22,8 @@ Boston, MA 02111-1307, USA. */
@deftypefn Replacement void* xmalloc (size_t)
Allocate memory without fail. If @code{malloc} fails, this will print
-a message to stderr (using the name set by @code{xmalloc_set_program_name},
+a message to @code{stderr} (using the name set by
+@code{xmalloc_set_program_name},
if any) and then call @code{xexit}. Note that it is therefore safe for
a program to contain @code{#define malloc xmalloc} in its source.