aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-05-18 22:05:15 +0000
committerZack Weinberg <zack@wolery.cumb.org>2000-05-18 22:05:15 +0000
commitcee71fbf472c7a023f0224be95aae49abeb182b9 (patch)
treec1e02b20d60f15a0aa07b56f35bf635004419b92 /gcc/genemit.c
parent3da4166e2d35baf72e4a4df3e04a5584b165f1c7 (diff)
* 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: https://gcc.gnu.org/svn/gcc/trunk@34000 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index f559eb97869..dab819bf6b1 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -738,33 +738,6 @@ output_peephole2_scratches (split)
insn_nr++;
}
}
-
-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 **));