frame work for xa51 (not enabled yet)
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 6 Jan 2002 13:03:15 +0000 (13:03 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 6 Jan 2002 13:03:15 +0000 (13:03 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1772 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c
src/SDCCicode.h
src/SDCCmain.c
src/port.h

index 28cef7ab721e5476b4214f2a4c9be5657a8f5f36..f9076153b113853f5bf0aeb46dee52520272c195 100644 (file)
@@ -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);
index 9a44fbc6013ee67df71c40f64e35ff40b867beba..51301d88f69a35d669fafc4b1fea992e5fafc03c 100644 (file)
@@ -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), \
index 0f74629178b978de967bd8c12787d97313771f64..91f9698161ac77d7651e39b4e651648a6b144978 100644 (file)
@@ -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]))
index aa0fd06d4a37a7b5ba162e1dd26262b2163f7fd9..7a6220adc80c84bf90afc68e9585bf224d6f198d 100644 (file)
@@ -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*/