[GHC] #3966: Warn about useless UNPACK pragmas
GHC
cvs-ghc at haskell.org
Mon Jun 11 17:57:37 CEST 2012
#3966: Warn about useless UNPACK pragmas
---------------------------------------------+------------------------------
Reporter: tibbe | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 7.4.3
Component: Compiler | Version: 6.12.1
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: typecheck/should_compile/T3966 | Blockedby:
Blocking: | Related:
---------------------------------------------+------------------------------
Comment(by simonmar):
Ah, the warning is only emitted when `-O` is on. I think it was always
that way.
Do we want to leave it like that? I think the reasoning is that without
`-O`, `UNPACK` does nothing anyway. On the other hand, a warning that
depends on the optimisation level is rather unpleasant.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3966#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list