[Issue 2717] New: alloca(0) leaves stack unaligned on OSX

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 8 18:26:24 PDT 2009


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


-- 



More information about the Digitalmars-d-bugs mailing list