www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2717


Lionello Lunesu <lio+bugzilla lunesu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 31 2013