Ticket #2327 (closed bug: fixed)
-O flag produces faulty code
| Reported by: | orenbenkiki | Owned by: | simonmar |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10.1 |
| Component: | Runtime System | Version: | 6.9 |
| Keywords: | Optimizer -O | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The -O flag generates incorrect code in both 6.8.2 and 6.9.
I tested it myself on 6.8.2 - The -O flag causes the program to enter a 100% CPU endless loop
Heffalump also tested it on 6.9 - The -O flag causes it to segfault
Attached is a tgz file containing the code (and the input).
ghc --make -o obk Main.hs ; obk -> works
ghc --make -o obk -O Main.hs ; obk -> fails
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

