www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2717] New: alloca(0) leaves stack unaligned on OSX

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: bugzilla digitalmars.com
        ReportedBy: lio+bugzilla 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.


-- 
Mar 08 2009