From 1956cbf13bd2138500daebd5f1f0a4931d8710ec Mon Sep 17 00:00:00 2001 From: Seraphime Kirkovski Date: Tue, 24 May 2016 22:30:09 +0200 Subject: Fix: #12084 deprecate old profiling flags Change help message so it doesn't specify -auto-all. Make old profiling flags deprecated as they are no longer documented. Update Makefile and documentation accordingly. Update release notes for ghc 8.2 Test Plan: ./verify; `ghc --help` shouldn't specify the -auto-all flag. Furthermore `ghc -fprof -auto-all` should emit a warning Reviewed By: thomie, austin Differential Revision: https://phabricator.haskell.org/D2257 GHC Trac Issues: #12084 Update submodule nofib --- docs/storage-mgt/rp.tex | 6 +++--- docs/users_guide/8.2.1-notes.rst | 4 ++++ docs/users_guide/separate_compilation.rst | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/storage-mgt/rp.tex b/docs/storage-mgt/rp.tex index c6de489c59..96b0875120 100644 --- a/docs/storage-mgt/rp.tex +++ b/docs/storage-mgt/rp.tex @@ -329,7 +329,7 @@ have to modify their corresponding structures. runtime system. First, @nofib/real/symalg@ ends up with a division-by-zero exception if we add a new field. -Second, the runtime system option @-auto-all@ clashes in some test files +Second, the runtime system option @-fprof-auto@ clashes in some test files in the @nofib@ testing suite (e.g., @spectral/expert@). \subsection{Initialization code} @@ -920,13 +920,13 @@ Since cost centre stacks are used as retainer identity, a source program must be given proper cost centre annotations by programmers. Alternatively, we can ask the compiler to automatically insert cost centre annotations. -For instance, the compiler option @-auto-all@ inserts a cost centre +For instance, the compiler option @-fprof-auto@ inserts a cost centre annotation around every top-level function as shown below (the @-p@ option is a must because we must build the executable file in a profiling way): \begin{code} -$ ghc-inplace -o Foo.out -p -auto-all Foo.hs +$ ghc-inplace -o Foo.out -p -fprof-auto Foo.hs \end{code} The runtime system option @-hR@ tells the executable program to diff --git a/docs/users_guide/8.2.1-notes.rst b/docs/users_guide/8.2.1-notes.rst index b52f0ede25..60f17cfbbb 100644 --- a/docs/users_guide/8.2.1-notes.rst +++ b/docs/users_guide/8.2.1-notes.rst @@ -27,6 +27,10 @@ Compiler - TODO FIXME. +- Old profiling flags -auto-all -auto -caf-all are deprecated + and their usage provokes a compile-time warning. + + GHCi ~~~~ diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst index d5fcd9c813..e83cd8e6aa 100644 --- a/docs/users_guide/separate_compilation.rst +++ b/docs/users_guide/separate_compilation.rst @@ -315,7 +315,7 @@ Redirecting the compilation output(s) .. code-block:: none - ghc ... -osuf prof.o -hisuf prof.hi -prof -auto-all + ghc ... -osuf prof.o -hisuf prof.hi -prof -fprof-auto to get the profiled version. -- cgit v1.2.1