llvm 3.6 and x86 (32-bit) varargs bad stack adjust

Dan Olson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Jul 12 00:09:33 PDT 2015


I haven't been paying attention, so perhaps this is old news.  D varargs
is broken with LDC 0.15.2 and LLVM 3.6 releases.  It looks like an
incorrect stack adjust is being added by backend after the function
call.  I noticed when I ran unittests and std.outbuffer plus other
unittests segv.

I tried LLVM 3.6.0, 3.6.1, and latest version on release_36 branch.  All
fail same way.  LLVM 3.5 seems ok.

Is there an Issue on this yet?
--
Dan


More information about the digitalmars-d-ldc mailing list