aboutsummaryrefslogtreecommitdiffhomepage
path: root/targ.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-06 11:41:44 +0100
committerlemon <lsof@mailbox.org>2025-12-06 11:55:41 +0100
commitd82f3052c813f671561362126d0fbe08568542d3 (patch)
treed82546bdf7f62e3461906c49fa3f3715d13422a6 /targ.c
parent2054983775165f3ae50b241aae71ccb4969eade4 (diff)
add command-line predefined macros (-D, -U)
Diffstat (limited to 'targ.c')
-rw-r--r--targ.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/targ.c b/targ.c
index 019f784..6a4a5bd 100644
--- a/targ.c
+++ b/targ.c
@@ -9,8 +9,9 @@ static const struct targ {
bool charsigned;
uchar sizetype, ptrdifftype, wchartype;
const struct mctarg *mctarg;
+ enum mcisa isa;
} targs[] = {
- { "amd64-sysv", {8, 8, 8, 24}, {8, 8, 8, 8}, 1, TYULONG, TYLONG, TYINT, &t_amd64_sysv },
+ { "amd64-sysv", {8, 8, 8, 24}, {8, 8, 8, 8}, 1, TYULONG, TYLONG, TYINT, &t_amd64_sysv, ISamd64 },
{ "i686-sysv", {4, 8, 4, 8}, {4, 4, 4, 4}, 1, TYUINT, TYINT, TYINT }
};
@@ -19,6 +20,7 @@ uchar targ_primalign[TYPTR+1];
uint targ_valistsize;
enum typetag targ_sizetype, targ_ptrdifftype, targ_wchartype;
bool targ_charsigned, targ_bigendian, targ_64bit;
+enum mcisa targ_mcisa;
const struct mctarg *mctarg;
void