From 0dbf78a04c14c7a6cfb3302f9faa4b6bcaa44b35 Mon Sep 17 00:00:00 2001 From: ivmai Date: Fri, 25 Sep 2009 07:13:13 +0000 Subject: 2009-09-25 Ivan Maidanski * checksums.c (GC_checksum, GC_update_check_page): Remove "register" keyword in local variable declarations (for the code used only for debugging or which is not time-critical). * dbg_mlc.c (GC_has_other_debug_info, GC_store_debug_info, GC_store_debug_info_inner, GC_check_annotated_obj, GC_print_obj, GC_print_smashed_obj, GC_debug_end_stubborn_change, GC_debug_invoke_finalizer): Ditto. * dyn_load.c (GC_register_dynamic_libraries): Ditto. * mallocx.c (GC_realloc): Ditto. * mark_rts.c (GC_print_static_roots, GC_is_static_root, GC_clear_roots): Ditto. * misc.c (GC_write): Ditto. * os_dep.c (GC_print_callers): Ditto. * dyn_load.c (GC_register_dynamic_libraries): Rename "i" local variable to "j" for the nested loop (just not to hide the similar variable in the outer one). * mark_rts.c (GC_print_static_roots): Output an error message using GC_err_printf() (instead of GC_printf()). --- checksums.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'checksums.c') diff --git a/checksums.c b/checksums.c index c0a2fa21..41bec06c 100644 --- a/checksums.c +++ b/checksums.c @@ -64,9 +64,9 @@ STATIC GC_bool GC_was_faulted(struct hblk *h) STATIC word GC_checksum(struct hblk *h) { - register word *p = (word *)h; - register word *lim = (word *)(h+1); - register word result = 0; + word *p = (word *)h; + word *lim = (word *)(h+1); + word result = 0; while (p < lim) { result += *p++; @@ -100,7 +100,7 @@ int GC_n_dirty; STATIC void GC_update_check_page(struct hblk *h, int index) { page_entry *pe = GC_sums + index; - register hdr * hhdr = HDR(h); + hdr * hhdr = HDR(h); struct hblk *b; if (pe -> block != 0 && pe -> block != h + OFFSET) ABORT("goofed"); -- cgit v1.2.1