diff options
author | Andreas Jaeger <aj@suse.de> | 2003-10-28 08:43:11 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2003-10-28 08:43:11 +0100 |
commit | 578e81709125628d0e641343de40e5f48b394f65 (patch) | |
tree | 7adb74f88295a045b869d9757df2e4383f98e248 /gcc | |
parent | 525996eb67bbf7718a84b593cff8dae73345bcc0 (diff) | |
download | gcc-578e81709125628d0e641343de40e5f48b394f65.zip gcc-578e81709125628d0e641343de40e5f48b394f65.tar.gz gcc-578e81709125628d0e641343de40e5f48b394f65.tar.bz2 |
ggc-zone.c (check_cookies): Add missing variable.
* ggc-zone.c (check_cookies): Add missing variable.
Add void to prototypes.
From-SVN: r73000
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ggc-zone.c | 14 |
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b011a5f..1976304 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype. diff --git a/gcc/ggc-zone.c b/gcc/ggc-zone.c index 897389e..e08ba5e 100644 --- a/gcc/ggc-zone.c +++ b/gcc/ggc-zone.c @@ -1127,7 +1127,7 @@ ggc_get_size (const void *p) /* Initialize the ggc-zone-mmap allocator. */ void -init_ggc () +init_ggc (void) { /* Create the zones. */ main_zone.name = "Main zone"; @@ -1195,7 +1195,7 @@ init_ggc () are never freed, eliminating the need to register their roots. */ void -ggc_push_context () +ggc_push_context (void) { struct alloc_zone *zone; for (zone = G.zones; zone; zone = zone->next_zone) @@ -1236,7 +1236,7 @@ ggc_pop_context_1 (struct alloc_zone *zone) /* Pop all the zone contexts. */ void -ggc_pop_context () +ggc_pop_context (void) { struct alloc_zone *zone; for (zone = G.zones; zone; zone = zone->next_zone) @@ -1430,10 +1430,12 @@ calculate_average_page_survival (struct alloc_zone *zone) structures. */ static inline void -check_cookies () +check_cookies (void) { #ifdef COOKIE_CHECKING page_entry *p; + struct alloc_zone *zone; + for (zone = G.zones; zone; zone = zone->next_zone) { for (p = zone->pages; p; p = p->next) @@ -1459,7 +1461,7 @@ check_cookies () /* Top level collection routine. */ void -ggc_collect () +ggc_collect (void) { struct alloc_zone *zone; bool marked = false; @@ -1558,7 +1560,7 @@ ggc_collect () /* Print allocation statistics. */ void -ggc_print_statistics () +ggc_print_statistics (void) { } |