opt_PprUserLength,
opt_SuppressUniques,
opt_PprStyle_Debug,
+ opt_NoDebugOutput,
-- profiling opts
opt_AutoSccsOnAllToplevs,
opt_Parallel,
-- optimisation opts
- opt_NoMethodSharing,
+ opt_DsMultiTyVar,
opt_NoStateHack,
opt_SpecInlineJoinPoints,
opt_CprOff,
opt_UF_KeenessFactor,
opt_UF_DearOp,
+ -- Optimization fuel controls
+ opt_Fuel,
+
-- Related to linking
opt_PIC,
opt_Static,
, ( "dppr-debug", PassFlag addOpt )
, ( "dsuppress-uniques", PassFlag addOpt )
, ( "dppr-user-length", AnySuffix addOpt )
+ , ( "dopt-fuel", AnySuffix addOpt )
+ , ( "dno-debug-output", PassFlag addOpt )
-- rest of the debugging flags are dynamic
--------- Profiling --------------------------------------------------
, ( "no-auto" , NoArg (removeOpt "-fauto-sccs-on-exported-toplevs") )
, ( "no-caf-all" , NoArg (removeOpt "-fauto-sccs-on-individual-cafs") )
- ------- Miscellaneous -----------------------------------------------
- , ( "no-link-chk" , NoArg (return ()) ) -- ignored for backwards compat
-
----- Linker --------------------------------------------------------
, ( "static" , PassFlag addOpt )
, ( "dynamic" , NoArg (removeOpt "-static") )
-- debugging opts
opt_SuppressUniques :: Bool
opt_SuppressUniques = lookUp (fsLit "-dsuppress-uniques")
-opt_PprStyle_Debug :: Bool
+opt_PprStyle_Debug :: Bool
opt_PprStyle_Debug = lookUp (fsLit "-dppr-debug")
-opt_PprUserLength :: Int
+opt_PprUserLength :: Int
opt_PprUserLength = lookup_def_int "-dppr-user-length" 5 --ToDo: give this a name
+opt_Fuel :: Int
+opt_Fuel = lookup_def_int "-dopt-fuel" maxBound
+opt_NoDebugOutput :: Bool
+opt_NoDebugOutput = lookUp (fsLit "-dno-debug-output")
+
-- profiling opts
opt_AutoSccsOnAllToplevs :: Bool
opt_Parallel = lookUp (fsLit "-fparallel")
-- optimisation opts
+opt_DsMultiTyVar :: Bool
+opt_DsMultiTyVar = not (lookUp (fsLit "-fno-ds-multi-tyvar"))
+ -- On by default
+
opt_SpecInlineJoinPoints :: Bool
opt_SpecInlineJoinPoints = lookUp (fsLit "-fspec-inline-join-points")
+
opt_NoStateHack :: Bool
opt_NoStateHack = lookUp (fsLit "-fno-state-hack")
-opt_NoMethodSharing :: Bool
-opt_NoMethodSharing = lookUp (fsLit "-fno-method-sharing")
opt_CprOff :: Bool
opt_CprOff = lookUp (fsLit "-fcpr-off")
-- Switch off CPR analysis in the new demand analyser
opt_UF_DearOp :: Int
opt_UF_DearOp = ( 4 :: Int)
+
+-- Related to linking
opt_PIC :: Bool
#if darwin_TARGET_OS && x86_64_TARGET_ARCH
opt_PIC = True
"dno-black-holing",
"fno-method-sharing",
"fno-state-hack",
+ "fno-ds-multi-tyvar",
"fruntime-types",
"fno-pre-inlining",
"fexcess-precision",