aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc/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 /powerpc/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 'powerpc/CBuiltins.ml')
-rw-r--r--powerpc/CBuiltins.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml
index 060e2b7f..8405c4f8 100644
--- a/powerpc/CBuiltins.ml
+++ b/powerpc/CBuiltins.ml
@@ -18,7 +18,10 @@
open C
let builtins = {
- Builtins.typedefs = [];
+ Builtins.typedefs = [
+ "__builtin_va_list",
+ TArray(TInt(IUInt, []), Some 3L, [])
+ ];
Builtins.functions = [
(* Integer arithmetic *)
"__builtin_mulhw",
@@ -84,3 +87,5 @@ let builtins = {
(TVoid [], [], false)
]
}
+
+let size_va_list = 12