fixed an integral promotion bug
[fw/sdcc] / src / pic / main.c
index d88ae7e2f77ff209f9cd037bad85552790cda3f3..8669abd9a161cbc974da7a7f74179c2b4812d1db 100644 (file)
@@ -208,9 +208,13 @@ static const char *_linkCmd[] =
   "aslink", "-nf", "$1", NULL
 };
 
+/* Sigh. This really is not good. For now, I recommend:
+ * sdcc -S -mpic14 file.c
+ * the -S option does not compile or link
+ */
 static const char *_asmCmd[] =
 {
-  "gpasm", NULL, NULL, NULL
+  "gpasm", "-c  -I /usr/local/share/gpasm/header", "$1.asm", NULL
 
 };
 
@@ -233,7 +237,8 @@ PORT pic_port =
        //"-plosgffc",          /* Options with debug */
        //"-plosgff",           /* Options without debug */
     0,
-    ".asm"
+    ".asm",
+    NULL                       /* no do_assemble function */
   },
   {
     _linkCmd,
@@ -287,6 +292,7 @@ PORT pic_port =
   _pic14_getRegName,
   _pic14_keywords,
   _pic14_genAssemblerPreamble,
+  NULL,                                /* no genAssemblerEnd */
   _pic14_genIVT,
   NULL, // _pic14_genXINIT
   _pic14_reset_regparm,
@@ -304,5 +310,8 @@ PORT pic_port =
   FALSE,                        /* No array initializer support. */
   0,                            /* no CSE cost estimation yet */
   NULL,                        /* no builtin functions */
+  GPOINTER,                    /* treat unqualified pointers as "generic" pointers */
+  1,                           /* reset labelKey to 1 */
+  1,                           /* globals & local static allowed */
   PORT_MAGIC
 };