From 1b3459d226b20b35cb410dd957fcf0d070cb4269 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Thu, 18 May 2000 22:05:15 +0000 Subject: genopinit.c: Use $ for escape sequences in optab patterns. * 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 From-SVN: r34000 --- gcc/genrecog.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'gcc/genrecog.c') diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 5d8bb59..7c435a0 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -2576,42 +2576,6 @@ record_insn_name (code, name) insn_name_ptr[code] = new; } -char * -xstrdup (input) - const char *input; -{ - register size_t len = strlen (input) + 1; - register char *output = xmalloc (len); - memcpy (output, input, len); - return output; -} - -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; -} - -PTR -xmalloc (size) - size_t size; -{ - register PTR val = (PTR) malloc (size); - - if (val == 0) - fatal ("virtual memory exhausted"); - return val; -} - static void debug_decision_2 (test) struct decision_test *test; -- cgit v1.1