* as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
[fw/sdcc] / src / avr / main.c
index 9f5a4fcd1c33aa3102cf466e3839057ee90bf9da..aa9a9d3e9440dc47f12905de3b50772a9d480e11 100644 (file)
@@ -42,7 +42,7 @@ _avr_init (void)
 }
 
 static void
-_avr_reset_regparm ()
+_avr_reset_regparm (void)
 {
        regParmFlg = 0;
 }
@@ -69,7 +69,7 @@ _avr_regparm (sym_link * l)
        return 0;
 }
 
-void avr_assignRegisters (eBBlock ** ebbs, int count);
+void avr_assignRegisters (ebbIndex *);
 
 static bool
 _avr_parseOptions (int *pargc, char **argv, int *i)
@@ -207,6 +207,7 @@ PORT avr_port = {
         "CSEG",
         "DSEG",
         "ISEG",
+        NULL, //PSEG
         "XSEG",
         "BSEG",
         "RSEG",
@@ -216,6 +217,7 @@ PORT avr_port = {
         "HOME",
         NULL, // initialized xdata
         NULL, // a code copy of xiseg
+        "CONST   (CODE)",              // const_name - const data (code or not)
         NULL,
         NULL,
         0,
@@ -230,6 +232,16 @@ PORT avr_port = {
        {
           avr_emitDebuggerSymbol
        },
+       {
+         255/3,      /* maxCount */
+         3,          /* sizeofElement */
+         /* The rest of these costs are bogus. They approximate */
+         /* the behavior of src/SDCCicode.c 1.207 and earlier.  */
+         {4,4,4},    /* sizeofMatchJump[] */
+         {0,0,0},    /* sizeofRangeCompare[] */
+         0,          /* sizeofSubtract */
+         3,          /* sizeofDispatch */
+       },
        "_",
        _avr_init,
        _avr_parseOptions,