[GHC] #2156: compilation math/truncate bug with optimization enabled

GHC trac at galois.com
Fri Mar 14 14:08:07 EDT 2008


#2156: compilation math/truncate bug with optimization enabled
-------------------------+--------------------------------------------------
    Reporter:  trevorm   |        Owner:       
        Type:  bug       |       Status:  new  
    Priority:  normal    |    Milestone:       
   Component:  Compiler  |      Version:  6.8.2
    Severity:  critical  |   Resolution:       
    Keywords:            |     Testcase:       
Architecture:  x86       |           Os:  Linux
-------------------------+--------------------------------------------------
Comment (by taruti):

 The same, but with proper formatting:

 i386 Debian system with GHC 6.8.2 (athlon xp 2ghz if relevant)

 {{{
 taruti at oz:/tmp$ ghc --make a.hs -o a -no-recomp && ./a
 [1 of 1] Compiling Main             ( a.hs, a.o )
 Linking a ...
 3
 taruti at oz:/tmp$ ghc --make a.hs -o a -no-recomp -O2 -fasm && ./a
 [1 of 1] Compiling Main             ( a.hs, a.o )
 Linking a ...
 2
 taruti at oz:/tmp$ ghc --make a.hs -o a -no-recomp -O2 -fvia-c && ./a
 [1 of 1] Compiling Main             ( a.hs, a.o )
 Linking a ...
 3
 }}}

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


More information about the Glasgow-haskell-bugs mailing list