[dmd-internals] Naked asm is broken on OSX.

Don Clugston dclugston at googlemail.com
Tue Aug 10 03:18:41 PDT 2010


I'm pretty sure this is why the bigint unit tests are failing on OSX.
There's a bit of code which deals with position independent code,
storing the address of the function on the stack.
It shouldn't be doing this in a naked function -- there's no stack
frame, so it's randomly corrupting local variables in the calling
function!!!

http://d.puremagic.com/issues/show_bug.cgi?id=4610

I'm guessing this is not too complicated, but since I don't have an
OSX box I can't patch it myself. Pretty awful bug, I think it's worth
fixing in this release.


More information about the dmd-internals mailing list