diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-06-13 18:11:19 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-06-13 18:11:19 +0000 |
commit | a5ffc59246b09a389e5f8cbc2f217e323e76990f (patch) | |
tree | e1bc7cc54518aad7c20645f187cee8110de8cff9 /cfrontend/Cshmgen.v | |
parent | 4daccd62b92b23016d3f343d5691f9c164a8a951 (diff) |
Revised handling of annotation statements, and more generally built-in functions, and more generally external functions
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1672 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/Cshmgen.v')
-rw-r--r-- | cfrontend/Cshmgen.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/Cshmgen.v b/cfrontend/Cshmgen.v index f1f7c0a..cc24316 100644 --- a/cfrontend/Cshmgen.v +++ b/cfrontend/Cshmgen.v @@ -606,8 +606,8 @@ Definition transl_fundef (f: Clight.fundef) : res fundef := | Clight.Internal g => do tg <- transl_function g; OK(AST.Internal tg) | Clight.External ef args res => - if list_typ_eq ef.(ef_sig).(sig_args) (typlist_of_typelist args) - && opt_typ_eq ef.(ef_sig).(sig_res) (opttyp_of_type res) + if list_typ_eq (sig_args (ef_sig ef)) (typlist_of_typelist args) + && opt_typ_eq (sig_res (ef_sig ef)) (opttyp_of_type res) then OK(AST.External ef) else Error(msg "Cshmgen.transl_fundef: wrong external signature") end. |