Cleanup sweep and fix a bug in RTS flag processing.
This code has accumulated a great deal of cruft over the years, this pass cleans up a lot of the surrounding cruft but leaves the actual argument processing alone - so there's still more that could be done. Bug fixed: - ghc_rts_opts should not be subject to the --rtsopts setting. If the programmer explicitly declares options with ghc_rts_opts, they shouldn't also have to accept command-line RTS options to make them work.
Showing
- compiler/main/DriverPipeline.hs 3 additions, 3 deletionscompiler/main/DriverPipeline.hs
- ghc/hschooks.c 0 additions, 1 deletionghc/hschooks.c
- includes/RtsFlags.h 0 additions, 5 deletionsincludes/RtsFlags.h
- includes/RtsOpts.h 6 additions, 2 deletionsincludes/RtsOpts.h
- includes/rts/Flags.h 0 additions, 7 deletionsincludes/rts/Flags.h
- rts/RtsFlags.c 154 additions, 88 deletionsrts/RtsFlags.c
- rts/RtsFlags.h 23 additions, 0 deletionsrts/RtsFlags.h
- rts/RtsStartup.c 2 additions, 2 deletionsrts/RtsStartup.c
- rts/ghc.mk 1 addition, 0 deletionsrts/ghc.mk
- rts/hooks/RtsOptsEnabled.c 1 addition, 1 deletionrts/hooks/RtsOptsEnabled.c
Loading
Please register or sign in to comment