aboutsummaryrefslogtreecommitdiff
path: root/targ.c
diff options
context:
space:
mode:
Diffstat (limited to 'targ.c')
-rw-r--r--targ.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/targ.c b/targ.c
index 2859975..f2be127 100644
--- a/targ.c
+++ b/targ.c
@@ -9,14 +9,32 @@ static const struct target alltargs[] = {
{
.name = "x86_64",
.typewchar = &typeint,
+ .typevalist = &(struct type){
+ .kind = TYPEARRAY, .prop = PROPOBJECT|PROPDERIVED|PROPAGGR,
+ .align = 8, .size = 24,
+ .array = {1}, .base = &(struct type){
+ .kind = TYPESTRUCT, .prop = PROPOBJECT|PROPAGGR,
+ .align = 8, .size = 24,
+ },
+ },
.signedchar = 1,
},
{
.name = "aarch64",
+ .typevalist = &(struct type){
+ .kind = TYPESTRUCT, .prop = PROPOBJECT|PROPAGGR,
+ .align = 8, .size = 32,
+ .structunion.tag = "va_list",
+ },
.typewchar = &typeuint,
},
{
.name = "riscv64",
+ .typevalist = &(struct type){
+ .kind = TYPEPOINTER, .prop = PROPOBJECT|PROPDERIVED|PROPSCALAR,
+ .align = 8, .size = 8,
+ .base = &typevoid,
+ },
.typewchar = &typeint,
},
};