From 6f39a8c11ee72515f0ea214da12a849a0dff9bec Mon Sep 17 00:00:00 2001 From: johanknol Date: Sun, 6 Jan 2002 13:03:15 +0000 Subject: [PATCH] frame work for xa51 (not enabled yet) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1772 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCicode.c | 8 +++++--- src/SDCCicode.h | 2 ++ src/SDCCmain.c | 3 +++ src/port.h | 3 +++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 28cef7ab..f9076153 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -229,7 +229,8 @@ printOperand (operand * op, FILE * file) op->key, OP_LIVEFROM (op), OP_LIVETO (op), OP_SYMBOL (op)->stack, - op->isaddr, OP_SYMBOL (op)->isreqv, OP_SYMBOL (op)->remat,OP_SYMBOL(op)->noSpilLoc, + op->isaddr, OP_SYMBOL (op)->isreqv, + OP_SYMBOL (op)->remat,OP_SYMBOL(op)->noSpilLoc, OP_SYMBOL(op)->ruonly ); { @@ -2871,10 +2872,11 @@ geniCodeCall (operand * left, ast * parms,int lvl) geniCodeParms (parms, NULL, &stack, getSpec (operandType (left)), OP_SYMBOL (left),lvl); /* now call : if symbol then pcall */ - if (IS_OP_POINTER (left) || IS_ITEMP(left)) + if (IS_OP_POINTER (left) || IS_ITEMP(left)) { ic = newiCode (PCALL, left, NULL); - else + } else { ic = newiCode (CALL, left, NULL); + } type = copyLinkChain (operandType (left)->next); etype = getSpec (type); diff --git a/src/SDCCicode.h b/src/SDCCicode.h index 9a44fbc6..51301d88 100644 --- a/src/SDCCicode.h +++ b/src/SDCCicode.h @@ -50,6 +50,8 @@ OPTYPE; #define IS_SYMOP(op) (op && op->type == SYMBOL) #define IS_VALOP(op) (op && op->type == VALUE) +#define IS_TYPOP(op) (op && op->type == TYPE) + #define ADDTOCHAIN(x) addSetHead(&iCodeChain,x) #define LRFTYPE sym_link *ltype = operandType(left), \ diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 0f746291..91f96981 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -283,6 +283,9 @@ static PORT *_ports[] = #if !OPT_DISABLE_TININative &tininative_port, #endif +#if !OPT_DISABLE_XA51 + &xa51_port, +#endif }; #define NUM_PORTS (sizeof(_ports)/sizeof(_ports[0])) diff --git a/src/port.h b/src/port.h index aa0fd06d..7a6220ad 100644 --- a/src/port.h +++ b/src/port.h @@ -283,5 +283,8 @@ extern PORT tlcs900h_port; #if !OPT_DISABLE_TININative extern PORT tininative_port; #endif +#if !OPT_DISABLE_XA51 +extern PORT xa51_port; +#endif #endif /* PORT_INCLUDE*/ -- 2.30.2