From b4e8611b69ae8da097b7ea972b5ae0018caa0b88 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 20 Jul 1998 16:16:34 +0000 Subject: [PATCH] [project @ 1998-07-20 16:16:34 by sof] Added paragraph about why _casm_s are a bad idea --- ghc/docs/users_guide/glasgow_exts.vsgml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ghc/docs/users_guide/glasgow_exts.vsgml b/ghc/docs/users_guide/glasgow_exts.vsgml index 81e0fc5..a154908 100644 --- a/ghc/docs/users_guide/glasgow_exts.vsgml +++ b/ghc/docs/users_guide/glasgow_exts.vsgml @@ -1,5 +1,5 @@ % -% $Id: glasgow_exts.vsgml,v 1.1 1998/01/30 17:02:18 simonm Exp $ +% $Id: glasgow_exts.vsgml,v 1.2 1998/07/20 16:16:34 sof Exp $ % % GHC Language Extensions. % @@ -275,6 +275,27 @@ replaced with the 1st--nth arguments. As you can see above, it is an easy way to do simple C~casting. Everything said about @_ccall_@ goes for @_casm_@ as well. +The use of @_casm_@ in your code does pose a problem to the compiler +when it comes to generating an interface file for a freshly compiled +module. Included in an interface file is the unfolding (if any) of a +declaration. However, if a declaration's unfolding happens to contain +a @_casm_@, its unfolding will -funfold-casms-in-hi-file option + %************************************************************************ %* * Using function headers -- 1.7.10.4