diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-01-01 16:43:37 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-01-01 16:43:37 +0000 |
commit | 7e4e9417b6bfaf9f6a0f36e2fc040c12f8530889 (patch) | |
tree | eccc49cef74eb53e0947cd4184d791620688fc37 /ia32/CBuiltins.ml | |
parent | c67f5803d5cd84dae8bd78901f9056a1f2eff700 (diff) | |
download | compcert-7e4e9417b6bfaf9f6a0f36e2fc040c12f8530889.tar.gz compcert-7e4e9417b6bfaf9f6a0f36e2fc040c12f8530889.zip |
Experimental support for <stdarg.h>, the GCC way. Works on IA32. To be tested on PowerPC and ARM.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2394 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'ia32/CBuiltins.ml')
-rw-r--r-- | ia32/CBuiltins.ml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ia32/CBuiltins.ml b/ia32/CBuiltins.ml index cbd5998c..b594c65e 100644 --- a/ia32/CBuiltins.ml +++ b/ia32/CBuiltins.ml @@ -18,7 +18,9 @@ open C let builtins = { - Builtins.typedefs = []; + Builtins.typedefs = [ + "__builtin_va_list", TPtr(TVoid [], []) + ]; Builtins.functions = [ (* Integer arithmetic *) "__builtin_bswap", @@ -45,3 +47,5 @@ let builtins = { (TVoid [], [TPtr(TInt(IUInt, []), []); TInt(IUInt, [])], false); ] } + +let size_va_list = 4 |