From a7974595b14162a181feeab40cacc005bb2cf144 Mon Sep 17 00:00:00 2001 From: Klaus Treichel Date: Fri, 30 Jan 2009 19:46:01 +0000 Subject: [PATCH] Work around an optimizer bug in gcc 4.3 on x86. --- ChangeLog | 7 +++++++ tools/gen-apply.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 77187bb..2cbbfc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-30 Peter Fristedt + Kirill Kononenko + + * tools/gen-apply.c (run_detect_struct_##n): Work around a bug in + gcc-4.3 with optimization level 2 and Debian Lenny. Make + 'jit_nint stack[1]' volatile. + 2009-01-01 Klaus Treichel * jit/jit-rules-x86-64.ins (JIT_OP_NFLOAT_TO_FLOAT32, diff --git a/tools/gen-apply.c b/tools/gen-apply.c index 3117a26..ef65a3e 100644 --- a/tools/gen-apply.c +++ b/tools/gen-apply.c @@ -959,7 +959,7 @@ void detect_float_return(void) void run_detect_struct_##n(void) \ { \ jit_nint *args; \ - jit_nint stack[1]; \ + volatile jit_nint stack[1]; \ jit_nint buffer[64 / sizeof(jit_nint)]; \ void *apply_return; \ jit_builtin_apply_args(jit_nint *, args); \