From eb81ab1b1c543f6f37cbb46a676a9549096ecc47 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 13 Nov 2018 11:02:49 +0300 Subject: Workaround 'local address assignment to a global variable' CSA warning * include/gc.h [(!__GNUC__ || __INTEL_COMPILER) && LINT2] (GC_reachable_here): Transform ptr in the same way as COVERT_DATAFLOW() does. * mach_dep.c (GC_with_callee_saves_pushed): Transform the argument of GC_noop1() by COVERT_DATAFLOW(). * misc.c [!ASM_CLEAR_CODE] (GC_clear_stack_inner): Likewise. * misc.c (GC_call_with_stack_base, GC_call_with_gc_active): Likewise. * pthread_support.c (GC_call_with_gc_active): Likewise. * win32_threads.c (GC_call_with_gc_active): Likewise. * misc.c (GC_call_with_gc_active): Transform &stacksect by COVERT_DATAFLOW() when storing to GC_stackbottom. * pthread_support.c (GC_call_with_gc_active): Likewise. --- mach_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mach_dep.c') diff --git a/mach_dep.c b/mach_dep.c index 94605a30..4cd7d399 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -334,7 +334,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), /* Strongly discourage the compiler from treating the above */ /* as a tail-call, since that would pop the register */ /* contents before we get a chance to look at them. */ - GC_noop1((word)(&dummy)); + GC_noop1(COVERT_DATAFLOW(&dummy)); } #endif /* !SN_TARGET_ORBIS && !SN_TARGET_PSP2 */ -- cgit v1.2.1