Commit 578e8170 by Andreas Jaeger Committed by Andreas Jaeger

ggc-zone.c (check_cookies): Add missing variable.

	* ggc-zone.c (check_cookies): Add missing variable.
	Add void to prototypes.

From-SVN: r73000
parent 525996eb
2003-10-28 Andreas Jaeger <aj@suse.de>
* ggc-zone.c (check_cookies): Add missing variable.
Add void to prototypes.
2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype. * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
......
...@@ -1127,7 +1127,7 @@ ggc_get_size (const void *p) ...@@ -1127,7 +1127,7 @@ ggc_get_size (const void *p)
/* Initialize the ggc-zone-mmap allocator. */ /* Initialize the ggc-zone-mmap allocator. */
void void
init_ggc () init_ggc (void)
{ {
/* Create the zones. */ /* Create the zones. */
main_zone.name = "Main zone"; main_zone.name = "Main zone";
...@@ -1195,7 +1195,7 @@ init_ggc () ...@@ -1195,7 +1195,7 @@ init_ggc ()
are never freed, eliminating the need to register their roots. */ are never freed, eliminating the need to register their roots. */
void void
ggc_push_context () ggc_push_context (void)
{ {
struct alloc_zone *zone; struct alloc_zone *zone;
for (zone = G.zones; zone; zone = zone->next_zone) for (zone = G.zones; zone; zone = zone->next_zone)
...@@ -1236,7 +1236,7 @@ ggc_pop_context_1 (struct alloc_zone *zone) ...@@ -1236,7 +1236,7 @@ ggc_pop_context_1 (struct alloc_zone *zone)
/* Pop all the zone contexts. */ /* Pop all the zone contexts. */
void void
ggc_pop_context () ggc_pop_context (void)
{ {
struct alloc_zone *zone; struct alloc_zone *zone;
for (zone = G.zones; zone; zone = zone->next_zone) for (zone = G.zones; zone; zone = zone->next_zone)
...@@ -1430,10 +1430,12 @@ calculate_average_page_survival (struct alloc_zone *zone) ...@@ -1430,10 +1430,12 @@ calculate_average_page_survival (struct alloc_zone *zone)
structures. */ structures. */
static inline void static inline void
check_cookies () check_cookies (void)
{ {
#ifdef COOKIE_CHECKING #ifdef COOKIE_CHECKING
page_entry *p; page_entry *p;
struct alloc_zone *zone;
for (zone = G.zones; zone; zone = zone->next_zone) for (zone = G.zones; zone; zone = zone->next_zone)
{ {
for (p = zone->pages; p; p = p->next) for (p = zone->pages; p; p = p->next)
...@@ -1459,7 +1461,7 @@ check_cookies () ...@@ -1459,7 +1461,7 @@ check_cookies ()
/* Top level collection routine. */ /* Top level collection routine. */
void void
ggc_collect () ggc_collect (void)
{ {
struct alloc_zone *zone; struct alloc_zone *zone;
bool marked = false; bool marked = false;
...@@ -1558,7 +1560,7 @@ ggc_collect () ...@@ -1558,7 +1560,7 @@ ggc_collect ()
/* Print allocation statistics. */ /* Print allocation statistics. */
void void
ggc_print_statistics () ggc_print_statistics (void)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment