[GHC] #12186: Windows linker stack commit setting causing issues

GHC ghc-devs at haskell.org
Sat Sep 17 18:07:42 UTC 2016


#12186: Windows linker stack commit setting causing issues
-------------------------------------+-------------------------------------
        Reporter:  tim-m89           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8870             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 Right, so using `-fstack-check` seems to emit calls to `___chkstk_ms`
 before stack alignments.

 {{{
   633de0:       48 83 e0 f0             and    $0xfffffffffffffff0,%rax
   633de4:       e8 07 0c 0d 00          callq  7049f0 <___chkstk_ms>
   633de9:       48 29 c4                sub    %rax,%rsp
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12186#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list