[LLVMdev] jit X86 target compilation callback bug

Anton Korobeynikov anton at korobeynikov.info
Mon Feb 8 00:31:33 PST 2010


Hello, Everyone

> That would be the correct thing to do on the MSVC version too I think.
> "and esp, -16" aligns the stack, and "sub esp, -16" makes room for 8
> bytes + padding to keep the 16 byte alignment of
> the stack.
Correct, it's funny why never saw this previously. I originally
thought about 64-bit stub. Kristaps, next time, please either submit a
diff, or tell the precise location info :)

> This patch should fix the issue:
> diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp
> index f363903..d297d24 100644
Looks ok, please commit.

Thanks!
-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list