Make -frewrite-rules into a dynamic flag; off for -O0
authorsimonpj@microsoft.com <unknown>
Fri, 4 May 2007 12:24:05 +0000 (12:24 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 4 May 2007 12:24:05 +0000 (12:24 +0000)
commit5943ce90c9c9d4319eec3cfe1fb3315f018e1c45
tree735fb9a58d0fc8cb591dbce39975f31abe3d938c
parent6f1d5899f59f268d5390ec12af9c9f2a529b56ef
Make -frewrite-rules into a dynamic flag; off for -O0

Argubly rewrite rules should not fire with -O0, and it turns
out that when compiling GHC.Base with -O0 we get a crash if
the rewrite rules do fire (see Note [Scoping for Builtin rules]
in PrelRules).

So unless someone yells, rewrite rules are off with -O0.

The new (now dynamic) flag is
    -frewrite rules (with -fno-rewrite-rules to disable)

The old (static) flag -frules-off is gone.
compiler/deSugar/DsListComp.lhs
compiler/main/DynFlags.hs
compiler/main/StaticFlags.hs
compiler/prelude/PrelRules.lhs
compiler/simplCore/SimplUtils.lhs
compiler/simplCore/Simplify.lhs
docs/users_guide/flags.xml