summaryrefslogtreecommitdiff
path: root/gcc/cppalloc.c
diff options
context:
space:
mode:
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-07 12:42:21 +0000
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-07 12:42:21 +0000
commitcaa859cdde89b29e003c9a0e9b469dd79effd516 (patch)
tree0e06ddfb7c06a8eb1366ed235d653e8ced12b583 /gcc/cppalloc.c
parent2c7e6296b92e67337b5386204b09594e4d946655 (diff)
downloadgcc-caa859cdde89b29e003c9a0e9b469dd79effd516.tar.gz
Mon Dec 7 15:38:25 1998 Dave Brolley <brolley@cygnus.com>
* gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1. Mon Dec 7 15:38:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB. * cppalloc.c: Move function `xcalloc' from cpplib.c to here. * cpplib.c: Move function `xcalloc' from here to cppalloc.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24152 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppalloc.c')
-rw-r--r--gcc/cppalloc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cppalloc.c b/gcc/cppalloc.c
index 3cd72ee1fa2..a852d00cb15 100644
--- a/gcc/cppalloc.c
+++ b/gcc/cppalloc.c
@@ -46,6 +46,16 @@ xmalloc (size)
}
PTR
+xcalloc (number, size)
+ size_t number, size;
+{
+ register PTR ptr = (PTR) calloc (number, size);
+ if (ptr == 0)
+ memory_full ();
+ return ptr;
+}
+
+PTR
xrealloc (old, size)
PTR old;
size_t size;