summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-02-17 06:18:37 -0800
committerYamaArashi <shadow962@live.com>2016-02-17 06:18:37 -0800
commit9cc5f8edb21ac07bff87def5155ee71dff449e37 (patch)
treeb75b0eb06bf733811e4f54bd28dd6fa93fa8f485 /gcc/genrecog.c
parent75ff61fd74b379f7278b1042e269ea3a6ee66518 (diff)
get rid of PTR macros
Diffstat (limited to 'gcc/genrecog.c')
-rwxr-xr-xgcc/genrecog.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index c892fe1..2b67391 100755
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -955,7 +955,7 @@ merge_trees(struct decision_head oldh, struct decision_head addh)
abort ();
if (old == 0
- && position_merit (NULL_PTR, add_mode, add->code) < best_merit)
+ && position_merit (NULL, add_mode, add->code) < best_merit)
{
add->prev = 0;
add->next = oldh.first;
@@ -1039,7 +1039,7 @@ write_subroutine(struct decision *tree, enum routine_type type)
printf ("x%d ATTRIBUTE_UNUSED;\n", max_depth);
printf (" %s tem ATTRIBUTE_UNUSED;\n", type == SPLIT ? "rtx" : "int");
- write_tree (tree, "", NULL_PTR, 1, type);
+ write_tree (tree, "", NULL, 1, type);
printf (" ret0: return %d;\n}\n\n", type == SPLIT ? 0 : -1);
}
/* This table is used to indent the recog_* functions when we are inside
@@ -1646,23 +1646,23 @@ mybcopy(char *in, char *out, unsigned length)
*out++ = *in++;
}
-PTR
-xrealloc(PTR old, size_t size)
+void *
+xrealloc(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;
}
-PTR
+void *
xmalloc(size_t size)
{
- register PTR val = (PTR) malloc (size);
+ register void *val = malloc (size);
if (val == 0)
fatal ("virtual memory exhausted");