[LLVMbugs] [Bug 8919] LLVM generated code crashes if stack frame > 4k on MinGW64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 6 02:39:39 PST 2011


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

NAKAMURA Takumi <geek4civic at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |geek4civic at gmail.com
         Resolution|FIXED                       |
         OS/Version|other                       |Windows XP

--- Comment #3 from NAKAMURA Takumi <geek4civic at gmail.com> 2011-01-06 04:39:38 CST ---
I have to reopen this. Sreeram's patch would be effective only on TDM.
I think it would not be needed to revert r122934. Prior implementation (_alloca
by %eax) was bogus, too.

in http://tdm-gcc.tdragon.net/development

> TDM64 edition only: Includes a patch to remove a leading underscore from the 64-bit cygwin.asm symbols "__chkstk" and "_alloca", allowing them to be exported with the same rule as the 32-bit versions after underscoring rules are applied.

The symbol "__chkstk" is unique to tdm. gcc's cygwin.asm and mingw-w64-gcc (and
I) assume "___chkstk".

ps. see also bug 8777 ;)


Anton,
> Also, I believe mingw-w64 provided *both* __alloca and
> __chkstk.

We may prefer ___chkstk on win64 rather than __alloca.
___chkstk does not modify %rcx %rdx %r8 and %r9. (__alloca does not)

Or shall we implement our chkstk? :D

-- 
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.



More information about the llvm-bugs mailing list