aboutsummaryrefslogtreecommitdiffstats
path: root/arm/CBuiltins.ml
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-01-01 16:43:37 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-01-01 16:43:37 +0000
commit7e4e9417b6bfaf9f6a0f36e2fc040c12f8530889 (patch)
treeeccc49cef74eb53e0947cd4184d791620688fc37 /arm/CBuiltins.ml
parentc67f5803d5cd84dae8bd78901f9056a1f2eff700 (diff)
downloadcompcert-kvx-7e4e9417b6bfaf9f6a0f36e2fc040c12f8530889.tar.gz
compcert-kvx-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 'arm/CBuiltins.ml')
-rw-r--r--arm/CBuiltins.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/arm/CBuiltins.ml b/arm/CBuiltins.ml
index ad739f1a..a8583c80 100644
--- a/arm/CBuiltins.ml
+++ b/arm/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",
@@ -44,3 +46,4 @@ let builtins = {
]
}
+let size_va_list = 4