summaryrefslogtreecommitdiff
path: root/docs/users_guide
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-04-26 21:49:46 +0100
committerIan Lynagh <igloo@earth.li>2012-04-26 21:49:46 +0100
commit80a9f2f5a540efc045f8f352ec19329e5ecc8cfd (patch)
treeb50a24744355fa4e46f582f0a73b833222b00adb /docs/users_guide
parent42760bd990661a199782c61f9d97123848c13b0e (diff)
downloadhaskell-80a9f2f5a540efc045f8f352ec19329e5ecc8cfd.tar.gz
Document the -fwarn-unsupported-calling-conventions flag
Diffstat (limited to 'docs/users_guide')
-rw-r--r--docs/users_guide/using.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index f9cbeb1c47..b01fa7e4c5 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -954,7 +954,8 @@ test.hs:(5,4)-(6,7):
<option>-fwarn-missing-fields</option>,
<option>-fwarn-missing-methods</option>,
<option>-fwarn-lazy-unlifted-bindings</option>,
- <option>-fwarn-wrong-do-bind</option>, and
+ <option>-fwarn-wrong-do-bind</option>,
+ <option>-fwarn-unsupported-calling-conventions</option>, and
<option>-fwarn-dodgy-foreign-imports</option>. The following
flags are
simple ways to select standard &ldquo;packages&rdquo; of warnings:
@@ -1103,6 +1104,19 @@ test.hs:(5,4)-(6,7):
</varlistentry>
<varlistentry>
+ <term><option>-fwarn-unsupported-calling-conventions</option>:</term>
+ <listitem>
+ <indexterm><primary><option>-fwarn-unsupported-calling-conventions</option></primary>
+ </indexterm>
+ <para>Causes a warning to be emitted for foreign declarations
+ that use unsupported calling conventions. In particular,
+ if the <literal>stdcall</literal> calling convention is used
+ on an architecture other than i386 then it will be treated
+ as <literal>ccall</literal>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-fwarn-dodgy-foreign-imports</option>:</term>
<listitem>
<indexterm><primary><option>-fwarn-dodgy-foreign-imports</option></primary>