summaryrefslogtreecommitdiff
path: root/checksums.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-25 07:13:13 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:47 +0400
commit0dbf78a04c14c7a6cfb3302f9faa4b6bcaa44b35 (patch)
treecece4c4efe12ab7f595c27104693a6032517aba2 /checksums.c
parentba266fac91ce5c645b7b7345f1729e31e0792955 (diff)
downloadbdwgc-0dbf78a04c14c7a6cfb3302f9faa4b6bcaa44b35.tar.gz
2009-09-25 Ivan Maidanski <ivmai@mail.ru>
* 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()).
Diffstat (limited to 'checksums.c')
-rw-r--r--checksums.c8
1 files changed, 4 insertions, 4 deletions
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");