-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing usage of ADDR() and MAKE_CPTR()
(fix of commits 42c770a, 176d640) Issue #627 (bdwgc). * darwin_stop_world.c (StackFrame): Remove reserved, savedRTOC fields (these are unused trailing ones). * darwin_stop_world.c (GC_FindTopOfStack): Use MAKE_CPTR() for stack_start and frame->savedSP; compare frame to NULL instead of stack_start to zero. * darwin_stop_world.c [CPPCHECK] (GC_FindTopOfStack): Call GC_noop1(frame->savedCR) (to make a dummy use of the field). * dyn_load.c (GC_FirstDLOpenedLinkMap): Use MAKE_CPTR() for dp->d_un.d_ptr. * dyn_load.c (GC_register_dynamic_libraries): Replace char* to ptr_t; use ADDR() for e. * dyn_load.c (GC_register_dynamic_libraries, GC_register_dynlib_callback): Use MAKE_CPTR() for p->p_vaddr. * dyn_load.c [AIX] (GC_register_dynamic_libraries): Replace while() loop with a for(;;) one; cast ldi->ldinfo_dataorg to ptr_t instead of use of MAKE_CPTR(). * dyn_load.c [DARWIN] (dyld_section_add_del): Change type of start, end local variables from unsigned long to ptr_t; use MAKE_CPTR() for slide+sec->addr. * headers.c (GC_prev_block): Use MAKE_CPTR() for HBLK_ADDR(bi,j). * include/private/gc_priv.h (HBLKDISPL): Use ADDR(). * os_dep.c [NEED_CALLINFO && SAVE_CALL_CHAIN && (NARGS!=0 || NFRAMES%2!=0 || !GC_HAVE_BUILTIN_BACKTRACE) && (I386 || SPARC)] (GC_save_callers): Cast frame->FR_SAVFP to ptr_t instead of long; use MAKE_CPTR() for fp->fr_arg[i]. * os_dep.c [NEED_CALLINFO] (GC_print_callers): Use ADDR() for info[i].ci_pc. * pthread_support.c [GC_PTHREADS_PARAMARK && GC_ASSERTIONS && GC_WIN32_THREADS && !USE_PTHREAD_LOCKS] (NUMERIC_THREAD_ID): Use ADDR() for GC_PTHREAD_PTRVAL(id); refine comment.
- Loading branch information
Showing
6 changed files
with
61 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters