http://llvm.org/bugs/show_bug.cgi?id=8424

           Summary: Stack probing code is only emitted on Cygwin/MinGW for
                    alloca. Windows needs it.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


On Windows when growing the stack by more than 4096 bytes you must call
_chkstk(size) or _alloca_probe[_(8|16)](size) to correctly load these pages
into memory. This is currently handled in several different places, but the
place that ends up handling calls to alloca or allocation of variable length
arrays only works on Cygwin and MinGW.

It should be trivial to support this on native Windows, alloca on CygMing just
forwards to _chkstk.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to