[commit: ghc] master: Minor twiddle to -funbox-strict-primitive-fields docs (7bf6eb9)

Johan Tibell <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/7bf6eb9a86c160a54ea3df553ade040d5c37c627

>---------------------------------------------------------------

commit 7bf6eb9a86c160a54ea3df553ade040d5c37c627
Author: Johan Tibell <[email protected]>
Date:   Fri Dec 7 11:56:51 2012 -0800

    Minor twiddle to -funbox-strict-primitive-fields docs

>---------------------------------------------------------------

 docs/users_guide/using.xml |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index fb1a7cc..918176f 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -1871,9 +1871,9 @@ f "2"    = 2
             <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 to every
-            strict constructor field that fullfills the size restriction. (see
-            <xref linkend="unpack-pragma"/>).
+            equivalent to adding an <literal>UNPACK</literal> pragma (see <xref
+            linkend="unpack-pragma"/>) to every strict constructor field that
+            fullfills the size restriction.
             </para>
 
             <para>This option is less of a sledgehammer than
@@ -1882,6 +1882,13 @@ f "2"    = 2
             to turn on unboxing by default you can disable it for certain
             constructor fields using the <literal>NOUNPACK</literal> pragma (see
             <xref linkend="nounpack-pragma"/>).</para>
+
+            <para>
+            Note that for consistency <literal>Double</literal>,
+            <literal>Word64</literal>, and <literal>Int64</literal> constructor
+            fields are unpacked on 32-bit platforms, even though they are
+            technically larger than a pointer on those platforms.
+            </para>
           </listitem>
         </varlistentry>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.