summaryrefslogtreecommitdiff
path: root/ghc/docs/users_guide/using.sgml
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-08-23 08:54:45 +0000
committersimonmar <unknown>2001-08-23 08:54:45 +0000
commit321743a1c99f9815ce7ea4855474ca6408188de1 (patch)
tree24723e9930bf07cefced0ba634ed864d8d9a4c15 /ghc/docs/users_guide/using.sgml
parentdc2d5709973e3bc9de1e15b2b787d2868c2f8877 (diff)
downloadhaskell-321743a1c99f9815ce7ea4855474ca6408188de1.tar.gz
[project @ 2001-08-23 08:54:45 by simonmar]
Put a big flashing warning sign next to the description of -O2-for-C, and don't endorse it by claiming that we actually use it (we don't).
Diffstat (limited to 'ghc/docs/users_guide/using.sgml')
-rw-r--r--ghc/docs/users_guide/using.sgml10
1 files changed, 8 insertions, 2 deletions
diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml
index 09c86a3bcb..58f59bed64 100644
--- a/ghc/docs/users_guide/using.sgml
+++ b/ghc/docs/users_guide/using.sgml
@@ -1185,6 +1185,12 @@ f "2" = 2
be worth a few percent in execution speed. Don't forget
<option>-fvia-C</option>, lest you use the native-code
generator and bypass GCC altogether!</para>
+
+ <para><emphasis>Note: some versions of gcc are known to
+ have code generation bugs with <option>-O2</option>. Use
+ this option at your own risk! But we'd be keen to here
+ any reports of whether (a) it works or (b) it improves
+ performance at all.</emphasis></para>
</listitem>
</varlistentry>
@@ -1215,8 +1221,8 @@ f "2" = 2
<para>We don't use a <option>-O*</option> flag for day-to-day
work. We use <option>-O</option> to get respectable speed;
e.g., when we want to measure something. When we want to go for
- broke, we tend to use <option>-O -fvia-C -O2-for-C</option> (and
- we go for lots of coffee breaks).</para>
+ broke, we tend to use <option>-O -fvia-C</option> (and we go for
+ lots of coffee breaks).</para>
<para>The easiest way to see what <option>-O</option> (etc.)
&ldquo;really mean&rdquo; is to run with <option>-v</option>,