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

           Summary: alloca(0) leaves stack unaligned on OSX
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: lio+bugzi...@lunesu.com


I don't have a Mac so I can't test whether this actually causes problems, but
commit 102 to alloca.d in druntime did not fix the condition alloca(0): it will
allocate 4 bytes, instead of 16. 

The fix would be to move the "jnz; mov" into the version blocks.


-- 

Reply via email to