Commit 303776ab authored by Jan Stolarek's avatar Jan Stolarek

Update User's Guide, cleanup DynFlags

parent c0a23542
......@@ -106,7 +106,7 @@ passFloatArgsInXmm dflags = case platformArch (targetPlatform dflags) of
-- On X86_64, we always pass 128-bit-wide vectors in registers. On 32-bit X86
-- and for all larger vector sizes on X86_64, LLVM's GHC calling convention
-- doesn't currently passing vectors in registers. The patch to update the GHC
-- does not currently pass vectors in registers. The patch to update the GHC
-- calling convention to support passing SIMD vectors in registers is small and
-- well-contained, so it may make it into LLVM 3.4. The hidden
-- -fllvm-pass-vectors-in-regs flag will generate LLVM code that attempts to
......
This diff is collapsed.
......@@ -115,6 +115,7 @@ staticFlags = unsafePerformIO $ do
-- is a prefix flag (i.e. HasArg, Prefix, OptPrefix, AnySuffix) will override
-- flags further down the list with the same prefix.
-- see Note [Updating flag description in the User's Guide] in DynFlags
flagsStatic :: [Flag IO]
flagsStatic = [
------ Debugging ----------------------------------------------------
......@@ -137,6 +138,7 @@ isStaticFlag :: String -> Bool
isStaticFlag f = f `elem` flagsStaticNames
-- see Note [Updating flag description in the User's Guide] in DynFlags
flagsStaticNames :: [String]
flagsStaticNames = [
"fno-state-hack",
......@@ -149,7 +151,7 @@ flagsStaticNames = [
-- the existing flags do nothing other than control debugging and some low-level
-- optimizer phases, so for the most part this is OK.
--
-- See GHC issue #8267: http://ghc.haskell.org/trac/ghc/ticket/8276#comment:37
-- See GHC issue #8276: http://ghc.haskell.org/trac/ghc/ticket/8276#comment:37
discardStaticFlags :: [String] -> [String]
discardStaticFlags = filter (\x -> x `notElem` flags)
where flags = [ "-fno-state-hack"
......@@ -187,6 +189,8 @@ lookUp sw = sw `elem` packed_static_opts
-- debugging options
-- see Note [Updating flag description in the User's Guide] in DynFlags
opt_PprStyle_Debug :: Bool
opt_PprStyle_Debug = lookUp (fsLit "-dppr-debug")
......
......@@ -81,6 +81,8 @@
<option>-XTypeFamilies</option>, <option>-XGADTs</option> or
<option>-XFlexibleContexts</option>).
</para>
</listitem>
<listitem>
<para>
<option>-fwarn-tabs</option> warning flag is turned on by
default with this release of GHC. It can be suppressed
......
This diff is collapsed.
This diff is collapsed.
......@@ -12,11 +12,11 @@ Should fail, GADTs is not enabled
options currently set: none.
base language is: Haskell2010
with the following modifiers:
-XGADTs
-XGADTSyntax
-XNoDatatypeContexts
-XNondecreasingIndentation
-XGADTSyntax
-XGADTs
-XMonoLocalBinds
-XNondecreasingIndentation
GHCi-specific dynamic flag settings:
other dynamic, non-language, flag settings:
-fno-ghci-history
......@@ -26,10 +26,10 @@ Should work, GADTs is in force from :set
options currently set: none.
base language is: Haskell2010
with the following modifiers:
-XGADTSyntax
-XNoDatatypeContexts
-XNondecreasingIndentation
-XGADTSyntax
-XMonoLocalBinds
-XNondecreasingIndentation
GHCi-specific dynamic flag settings:
other dynamic, non-language, flag settings:
-fno-ghci-history
......@@ -38,13 +38,13 @@ warning settings:
Should fail, GADTs is now disabled
base language is: Haskell2010
with the following modifiers:
-XGADTs
-XNoDatatypeContexts
-XExtendedDefaultRules
-XGADTSyntax
-XGADTs
-XMonoLocalBinds
-XNoMonomorphismRestriction
-XNoDatatypeContexts
-XNondecreasingIndentation
-XMonoLocalBinds
-XExtendedDefaultRules
GHCi-specific dynamic flag settings:
other dynamic, non-language, flag settings:
-fno-ghci-history
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment