#5082: Emit warnings when conflicting flags are supplied
---------------------------------+------------------------------------------
Reporter: ezyang | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 7.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Many command line flags can be thought of as modifying some GHC's internal
flag state. We do this so that we can override flags in one place by re-
specifying the flag later, e.g. ghc -fno-new-codegen ... -fnew-codegen
While this is handy, it can cause some interesting unexpected behavior
where a user modifies a flag in some place (for example, the command
line), and the flag gets subsequently overridden by another location (for
example, an OPTIONS_GHC pragma). What would be useful is if GHC could
report when some internal option is modified by multiple places, and say
which one "won" in the end.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5082>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs