From 473cade85acac64565c91d74fe00646488fae2a5 Mon Sep 17 00:00:00 2001 From: "aj@138bc75d-0d04-0410-961f-82ee72b054a4" Date: Sun, 25 Apr 2004 04:17:51 +0000 Subject: [PATCH] * mark.c (GC_mark_from): Use pointer as prefetch argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81155 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog | 4 ++++ mark.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 182fef1c..8195dd2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-04-25 Andreas Jaeger + + * mark.c (GC_mark_from): Use pointer as prefetch argument. + 2004-04-06 H.J. Lu * include/private/gcconfig.h (PREFETCH): Use __builtin_prefetch diff --git a/mark.c b/mark.c index ca947290..fffd62ac 100644 --- a/mark.c +++ b/mark.c @@ -684,7 +684,7 @@ mse * mark_stack_limit; current = *current_p; FIXUP_POINTER(current); if ((ptr_t)current >= least_ha && (ptr_t)current < greatest_ha) { - PREFETCH(current); + PREFETCH((ptr_t)current); HC_PUSH_CONTENTS((ptr_t)current, mark_stack_top, mark_stack_limit, current_p, exit1); } @@ -760,7 +760,7 @@ mse * mark_stack_limit; FIXUP_POINTER(deferred); limit = (word *)((char *)limit - ALIGNMENT); if ((ptr_t)deferred >= least_ha && (ptr_t)deferred < greatest_ha) { - PREFETCH(deferred); + PREFETCH((ptr_t)deferred); break; } if (current_p > limit) goto next_object; @@ -770,7 +770,7 @@ mse * mark_stack_limit; FIXUP_POINTER(deferred); limit = (word *)((char *)limit - ALIGNMENT); if ((ptr_t)deferred >= least_ha && (ptr_t)deferred < greatest_ha) { - PREFETCH(deferred); + PREFETCH((ptr_t)deferred); break; } if (current_p > limit) goto next_object; @@ -787,7 +787,7 @@ mse * mark_stack_limit; if ((ptr_t)current >= least_ha && (ptr_t)current < greatest_ha) { /* Prefetch the contents of the object we just pushed. It's */ /* likely we will need them soon. */ - PREFETCH(current); + PREFETCH((ptr_t)current); HC_PUSH_CONTENTS((ptr_t)current, mark_stack_top, mark_stack_limit, current_p, exit2); } -- 2.40.0