From 96a803c1c6e958c64ef595510c2b9063ace352c4 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Mon, 27 Apr 2015 17:20:16 +0430 Subject: [PATCH] ncc: cast values to architecture word after each operation This is necessary only in 64-bit architectures. --- ncc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ncc.c b/ncc.c index faea4a7..9fefeb9 100644 --- a/ncc.c +++ b/ncc.c @@ -1,7 +1,7 @@ /* * neatcc - the neatcc compiler * - * Copyright (C) 2010-2014 Ali Gholami Rudi + * Copyright (C) 2010-2015 Ali Gholami Rudi * * This program is released under the Modified BSD license. */ @@ -94,6 +94,9 @@ static void ts_push_bt(unsigned bt) ts[nts].flags = 0; ts[nts].addr = 0; ts[nts++].bt = bt; +#ifdef NCCWORDCAST + o_cast(bt); /* casting to architecture word */ +#endif } static void ts_push(struct type *t) -- 2.11.4.GIT