Replaced cast (void **) with (void *) to avoid gcc 3 warning:
[fw/sdcc] / src / xa51 / main.c
index d3aaa9ad384c347d3ed5d05b328bcb39e7858b60..1a9ae3edcf56aa8326092f9e59f1dbb1b8294c9d 100755 (executable)
@@ -42,7 +42,11 @@ static char *_xa51_keywords[] =
   NULL
 };
 
-extern int rewinds;
+/* rewinds declared in asm.c, function printCLine().
+ * Currently commented out.
+ *
+ * extern int rewinds;
+ */
 void   _xa51_genAssemblerEnd (FILE * of)
 {
   //fprintf (stderr, "Did %d rewind%c for c-line in asm comments\n", rewinds,
@@ -213,6 +217,7 @@ PORT xa51_port =
   "MCU 80C51XA",                       /* Target name */
   NULL,                                /* Processor name */
   {
+    glue,
     FALSE,                     /* Emit glue around main */
     MODEL_PAGE0,
     MODEL_PAGE0
@@ -258,6 +263,7 @@ PORT xa51_port =
     NULL, // default global map
     1
   },
+  { NULL, NULL },
   {
     -1, // stack grows down
     0, // bank overhead NUY
@@ -289,6 +295,7 @@ PORT xa51_port =
   NULL, // getMangledFunctionName()
   NULL, // hasNativeMulFor()
   TRUE, // use_dw_for_init
+  TRUE,                                /* little endian */
   0,                           /* leave lt */
   0,                           /* leave gt */
   1,                           /* transform <= to ! > */