[Git][ghc/ghc][wip/sol/pgms-deprecated] Report -pgms as a deprecated flag

Simon Hengel pushed to branch wip/sol/pgms-deprecated at Glasgow Haskell Compiler / GHC Commits: 43b2e5cd by Simon Hengel at 2025-08-06T13:20:53+07:00 Report -pgms as a deprecated flag (instead of reporting an unspecific warning) Before: on the commandline: warning: Object splitting was removed in GHC 8.8 After: on the commandline: warning: [GHC-53692] [-Wdeprecated-flags] -pgms is deprecated: Object splitting was removed in GHC 8.8 - - - - - 1 changed file: - compiler/GHC/Driver/Session.hs Changes: ===================================== compiler/GHC/Driver/Session.hs ===================================== @@ -1145,8 +1145,8 @@ dynamic_flags_deps = [ $ noArgM $ \d -> do deprecate $ "use -pgml-supports-no-pie instead" pure $ alterToolSettings (\s -> s { toolSettings_ccSupportsNoPie = True }) d) - , make_ord_flag defFlag "pgms" - (HasArg (\_ -> addWarn "Object splitting was removed in GHC 8.8")) + , make_dep_flag defFlag "pgms" + (HasArg (\_ -> return ())) "Object splitting was removed in GHC 8.8" , make_ord_flag defFlag "pgma" $ hasArg $ \f -> alterToolSettings $ \s -> s { toolSettings_pgm_a = (f,[]) } , make_ord_flag defFlag "pgml" View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43b2e5cd2282d9cb29e9105dff7a379b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/43b2e5cd2282d9cb29e9105dff7a379b... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Hengel (@sol)