diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-13 16:43:15 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-13 16:43:15 +0930 |
commit | 31b15688c414c7caf957be63d2914faafa1b9dda (patch) | |
tree | e9d162e81034cf547a59a312c82a43df5b9f0a29 /libiberty/alloca.c | |
parent | 845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 (diff) | |
download | binutils-31b15688c414c7caf957be63d2914faafa1b9dda.zip binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.gz binutils-31b15688c414c7caf957be63d2914faafa1b9dda.tar.bz2 |
Import libiberty from gcc
Diffstat (limited to 'libiberty/alloca.c')
-rw-r--r-- | libiberty/alloca.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/alloca.c b/libiberty/alloca.c index 9b2e9cb..b75f756 100644 --- a/libiberty/alloca.c +++ b/libiberty/alloca.c @@ -158,7 +158,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */ /* @undocumented C_alloca */ -PTR +void * C_alloca (size_t size) { auto char probe; /* Probes stack depth: */ @@ -181,7 +181,7 @@ C_alloca (size_t size) { register header *np = hp->h.next; - free ((PTR) hp); /* Collect garbage. */ + free ((void *) hp); /* Collect garbage. */ hp = np; /* -> next header. */ } @@ -210,7 +210,7 @@ C_alloca (size_t size) /* User storage begins just after header. */ - return (PTR) ((char *) new_storage + sizeof (header)); + return (void *) ((char *) new_storage + sizeof (header)); } } |