[GHC] #7411: Exceptions are optimized away in certain situations

GHC ghc-devs at haskell.org
Tue Jul 3 10:41:29 UTC 2018


#7411: Exceptions are optimized away in certain situations
-------------------------------------+-------------------------------------
        Reporter:  SimonHengel       |                Owner:  tdammers
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  7.6.1
      Resolution:                    |             Keywords:  seq, deepseq,
                                     |  evaluate, exceptions
Operating System:  Linux             |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  Incorrect result  |            Test Case:
  at runtime                         |  simplCore/should_fail/T7411
      Blocked By:                    |             Blocking:
 Related Tickets:  #5129 #15225      |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by tdammers):

 Oh dear. It turns out my bash script that I used to automatically build
 the required GHC's and run nofib had a bug that caused it to silently
 ignore mistyped build flavours, so instead of "GHC compiled with -fno-
 state-hack", I got "GHC compiled with the default flavour". Which explains
 the whopping difference: where I thought I was comparing "GHC compiled
 with -prof -fno-state-hack vs. GHC compiled with -prof", I was actually
 comparing "GHC release build vs. GHC prof build".

 Fortunately, the nofib flags were correct, so the part about the effect of
 `-fno-state-hack` on the nofib suite remains valid. I'll re-run the tests
 for "GHC compiled with -fno-state-hack", and I'll also throw in "Boot
 libraries compiled with -fno-state-hack, GHC compiled normally".

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


More information about the ghc-tickets mailing list