summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJohan Tibell <johan.tibell@gmail.com>2013-04-26 11:14:01 -0700
committerJohan Tibell <johan.tibell@gmail.com>2013-04-30 08:10:06 -0700
commitade1ae97ed52c493ec415c1601dace39b64071dd (patch)
tree131828007a85d5aa32b2d9302157dd58b7825c6c /docs
parentd75ca39b2ff8132dde6eb6aee946d75ba0a3f3ef (diff)
downloadhaskell-ade1ae97ed52c493ec415c1601dace39b64071dd.tar.gz
Enable -funbox-small-strict-fields by default
The flag shows no real impact on nofib benchmarks and GHC itself, which is expected given the small number of strict but not already unpacked fields in the source of these programs. However, the flag allows us to omit most of the UNPACK pragmas that are so common in source code today.
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/using.xml11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index be7e3da2ce..9c6fbf714a 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -1901,11 +1901,12 @@ f "2" = 2
<indexterm><primary>constructor fields, strict</primary></indexterm>
</term>
<listitem>
- <para>This option causes all constructor fields which are
- marked strict (i.e. &ldquo;!&rdquo;) and which
- representation is smaller or equal to the size of a
- pointer to be unpacked, if possible. It is equivalent to
- adding an <literal>UNPACK</literal> pragma (see <xref
+ <para><emphasis>On by default.</emphasis>. This option
+ causes all constructor fields which are marked strict
+ (i.e. &ldquo;!&rdquo;) and which representation is smaller
+ or equal to the size of a pointer to be unpacked, if
+ possible. It is equivalent to adding an
+ <literal>UNPACK</literal> pragma (see <xref
linkend="unpack-pragma"/>) to every strict constructor
field that fulfils the size restriction.
</para>