diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-10-21 20:27:51 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-10-21 20:27:51 +0300 |
commit | 9ec0f5f6c1853ff3e63546e0009b98aebb8ee546 (patch) | |
tree | ae5f68f61f59f9a3e798378ba66406274051f104 /mark_rts.c | |
parent | 1a8c7c0e8952ce552be0956b45bcb93cc3dd3637 (diff) | |
download | bdwgc-9ec0f5f6c1853ff3e63546e0009b98aebb8ee546.tar.gz |
Eliminate 'value of NEED_FIXUP_POINTER unknown' cppcheck info messages
* include/private/gc_pmark.h: Replace #if NEED_FIXUP_POINTER
to #ifdef NEED_FIXUP_POINTER.
* include/private/gcconfig.h (NEED_FIXUP_POINTER): If FIXUP_POINTER
then define to empty else leave undefined.
* mark.c (GC_push_all_stack): Replace if(!NEED_FIXUP_POINTER)
to #ifndef NEED_FIXUP_POINTER.
* mark_rts.c (GC_push_all_stack_partially_eager): Likewise.
Diffstat (limited to 'mark_rts.c')
-rw-r--r-- | mark_rts.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -591,7 +591,8 @@ GC_INNER void GC_push_all_stack_sections(ptr_t lo, ptr_t hi, STATIC void GC_push_all_stack_partially_eager(ptr_t bottom, ptr_t top, ptr_t cold_gc_frame) { - if (!NEED_FIXUP_POINTER && GC_all_interior_pointers) { +#ifndef NEED_FIXUP_POINTER + if (GC_all_interior_pointers) { /* Push the hot end of the stack eagerly, so that register values */ /* saved inside GC frames are marked before they disappear. */ /* The rest of the marking can be deferred until later. */ @@ -608,7 +609,9 @@ STATIC void GC_push_all_stack_partially_eager(ptr_t bottom, ptr_t top, GC_push_all(bottom, cold_gc_frame + sizeof(ptr_t)); GC_push_all_eager(cold_gc_frame, top); # endif /* STACK_GROWS_UP */ - } else { + } else +#endif + /* else */ { GC_push_all_eager(bottom, top); } # ifdef TRACE_BUF |