[GHC] #11106: Turning on optimizer changes behavior in 7.10.3

GHC ghc-devs at haskell.org
Tue Nov 17 23:46:13 UTC 2015


#11106: Turning on optimizer changes behavior in 7.10.3
-------------------------------------+-------------------------------------
        Reporter:  dsf               |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by dsf:

Old description:

> The repository at https://github.com/ddssff/ghcbug contains a four module
> package that works when compiled with -O2, but fails when compiled with
> -O2.  The cabal file builds working and failing executable.
>
> One of the modules has OPTIONS_GHC -O0 in the header, so the bug is
> related to mixing modules with different optimization levels.  Other than
> that, I have little idea what is going on.
>
> The bug was present in 7.10,2, and is definitely still present in
> 7.10.3-rc1.  I doubt it has been fixed since then.

New description:

 The repository at https://github.com/ddssff/ghcbug contains a four module
 package that works when compiled with -O0, but fails when compiled with
 -O2.  The cabal file builds working and failing executable.

 One of the modules has OPTIONS_GHC -O0 in the header, so the bug is
 related to mixing modules with different optimization levels.  Other than
 that, I have little idea what is going on.

 The bug was present in 7.10,2, and is definitely still present in
 7.10.3-rc1.  I doubt it has been fixed since then.

--

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


More information about the ghc-tickets mailing list