From f950cdc797e920041b0672a1a7100fd266457cc4 Mon Sep 17 00:00:00 2001 From: zack Date: Thu, 18 May 2000 22:05:15 +0000 Subject: * genopinit.c: Use $ for escape sequences in optab patterns. Remove backslashes from optab patterns. Change $A, $B, $C to expand to (int) whatever instead of just whatever; remove explicit (int) from all optab patterns. * gensupport.c (xmalloc, xrealloc, xstrdup): Provide. * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c: Remove private copies of xmalloc, xrealloc, and git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34000 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/genpeep.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'gcc/genpeep.c') diff --git a/gcc/genpeep.c b/gcc/genpeep.c index dc90c73e2c8..fa8d08fdece 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -368,32 +368,6 @@ print_code (code) for (p1 = GET_RTX_NAME (code); *p1; p1++) putchar (TOUPPER(*p1)); } - -PTR -xmalloc (size) - size_t size; -{ - register PTR val = (PTR) malloc (size); - - if (val == 0) - fatal ("virtual memory exhausted"); - return val; -} - -PTR -xrealloc (old, size) - PTR old; - size_t size; -{ - register PTR ptr; - if (old) - ptr = (PTR) realloc (old, size); - else - ptr = (PTR) malloc (size); - if (!ptr) - fatal ("virtual memory exhausted"); - return ptr; -} extern int main PARAMS ((int, char **)); -- cgit v1.2.1