rts: add "-no-rtsopts-suggestions" option
authorJavran Cheng <Javran.c@gmail.com>
Wed, 6 May 2015 12:47:20 +0000 (07:47 -0500)
committerAustin Seipp <austin@well-typed.com>
Wed, 6 May 2015 12:50:49 +0000 (07:50 -0500)
commit477f514f6ebcf783810da93e2191e4b6ea65559b
tree937142e105718d77b9a7c404cd538e3dd9e78f55
parent03c4893e355948fe865bc52c744359c42e4b06d7
rts: add "-no-rtsopts-suggestions" option

Depends on D767

Setting this flag prevents RTS from giving RTS suggestions like "Use
`+RTS -Ksize -RTS' to increase it."

According to the comment @rwbarton made in #9579, sometimes "+RTS"
suggestions don't make sense (e.g. when the program is precompiled and
installed through package managers), we can encourage people to
distribute binaries with either "-no-rtsopts-suggestions" or "-rtsopts".

Reviewed By: erikd, austin

Differential Revision: https://phabricator.haskell.org/D809

GHC Trac Issues: #9579
28 files changed:
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
docs/users_guide/flags.xml
docs/users_guide/phases.xml
includes/RtsAPI.h
rts/ProfHeap.c
rts/RtsFlags.c
rts/hooks/OutOfHeap.c
rts/hooks/StackOverflow.c
testsuite/tests/rts/T5644/T5644.stderr
testsuite/tests/rts/T9579/.gitignore
testsuite/tests/rts/T9579/Makefile
testsuite/tests/rts/T9579/T9579_outofheap_rtsall.stderr
testsuite/tests/rts/T9579/T9579_outofheap_rtsall_no_suggestions.stderr [new file with mode: 0644]
testsuite/tests/rts/T9579/T9579_outofheap_rtsnone.stderr
testsuite/tests/rts/T9579/T9579_outofheap_rtssome.stderr
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall.stderr
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall_no_suggestions.stderr [new file with mode: 0644]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsnone.stderr
testsuite/tests/rts/T9579/T9579_stackoverflow_rtssome.stderr
testsuite/tests/rts/T9579/all.T
testsuite/tests/rts/outofmem.stderr
testsuite/tests/rts/outofmem.stderr-i386-unknown-mingw32
testsuite/tests/rts/outofmem2.stderr
testsuite/tests/rts/overflow1.stderr
testsuite/tests/rts/overflow2.stderr
testsuite/tests/rts/overflow3.stderr
testsuite/tests/simplCore/should_run/simplrun010.stderr