summaryrefslogtreecommitdiff
path: root/gcc/genconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genconfig.c')
-rwxr-xr-xgcc/genconfig.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index 9b05247..51d8363 100755
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -268,11 +268,11 @@ gen_peephole (peep)
walk_insn_part (XVECEXP (peep, 0, i), 1, 0);
}
-PTR
+void *
xmalloc (size)
size_t size;
{
- register PTR val = (PTR) malloc (size);
+ register void *val = malloc (size);
if (val == 0)
fatal ("virtual memory exhausted");
@@ -280,16 +280,16 @@ xmalloc (size)
return val;
}
-PTR
+void *
xrealloc (old, size)
- PTR old;
+ void *old;
size_t size;
{
- register PTR ptr;
+ register void *ptr;
if (old)
- ptr = (PTR) realloc (old, size);
+ ptr = realloc (old, size);
else
- ptr = (PTR) malloc (size);
+ ptr = malloc (size);
if (!ptr)
fatal ("virtual memory exhausted");
return ptr;