summaryrefslogtreecommitdiff
path: root/gcc/toplev.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/toplev.c
parent75ff61fd74b379f7278b1042e269ea3a6ee66518 (diff)
get rid of PTR macros
Diffstat (limited to 'gcc/toplev.c')
-rwxr-xr-xgcc/toplev.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 167a8d0..5b7a4dc 100755
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1898,16 +1898,16 @@ botch (s)
/* Same as `malloc' but report error if no memory available. */
-PTR
+void *
xmalloc (size)
size_t size;
{
- register PTR value;
+ register void *value;
if (size == 0)
size = 1;
- value = (PTR) malloc (size);
+ value = malloc (size);
if (value == 0)
fatal ("virtual memory exhausted");
return value;
@@ -1915,16 +1915,16 @@ xmalloc (size)
/* Same as `calloc' but report error if no memory available. */
-PTR
+void *
xcalloc (size1, size2)
size_t size1, size2;
{
- register PTR value;
+ register void *value;
if (size1 == 0 || size2 == 0)
size1 = size2 = 1;
- value = (PTR) calloc (size1, size2);
+ value = calloc (size1, size2);
if (value == 0)
fatal ("virtual memory exhausted");
return value;
@@ -1934,17 +1934,17 @@ xcalloc (size1, size2)
/* Same as `realloc' but report error if no memory available.
Also handle null PTR even if the vendor realloc gets it wrong. */
-PTR
+void *
xrealloc (ptr, size)
- PTR ptr;
+ void *ptr;
size_t size;
{
- register PTR result;
+ register void *result;
if (size == 0)
size = 1;
- result = (ptr ? (PTR) realloc (ptr, size) : (PTR) malloc (size));
+ result = (ptr ? realloc (ptr, size) : malloc (size));
if (!result)
fatal ("virtual memory exhausted");
@@ -2654,7 +2654,7 @@ compile_file (name)
|| TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))))
{
reconsider = 1;
- rest_of_decl_compilation (decl, NULL_PTR, 1, 1);
+ rest_of_decl_compilation (decl, NULL, 1, 1);
}
if (TREE_CODE (decl) == FUNCTION_DECL