removed obsolete and buggy ARRAYINIT
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 May 2003 18:36:50 +0000 (18:36 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 May 2003 18:36:50 +0000 (18:36 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2625 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/ds390/gen.c
src/ds390/main.c

index efd6585bc436a2dc4654457e425f519054da47ac..50ed88ce2a7688a234563ed658b6d346ea98b99c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-18    <johan@balder>
+
+       * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
+       * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT 
 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
 
        * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
index b94571937e35fdb6d4e8fbe81485d44635e9b92a..c412390a5978e259ab811682b5918e080b9546ec 100644 (file)
@@ -10632,6 +10632,7 @@ release:
 
 }
 
+#if 0 // obsolete, and buggy for != xdata
 /*-----------------------------------------------------------------*/
 /* genArrayInit - generates code for address of                       */
 /*-----------------------------------------------------------------*/
@@ -10740,6 +10741,7 @@ genArrayInit (iCode * ic)
     
     freeAsmop (IC_LEFT(ic), NULL, ic, TRUE);
 }
+#endif
 
 /*-----------------------------------------------------------------*/
 /* genFarFarAssign - assignment when both are in far space         */
@@ -12971,9 +12973,11 @@ gen390Code (iCode * lic)
          else addSet (&_G.sendSet, ic);
          break;
 
+#if 0 // obsolete, and buggy for != xdata
        case ARRAYINIT:
            genArrayInit(ic);
            break;
+#endif
            
        default:
          ic = ic;
index 2d5b4717ec14327b12a38ce2a5281817711130aa..f94e3027d4e0a020baba1e909794f6e2d09d200c 100644 (file)
@@ -416,7 +416,11 @@ PORT ds390_port =
   1,                           /* transform >= to ! < */
   1,                           /* transform != to !(a == b) */
   0,                           /* leave == */
+#if 0 // obsolete, and buggy for != xdata
   TRUE,                         /* we support array initializers. */
+#else
+  FALSE,                        /* No array initializer support. */
+#endif
   cseCostEstimation,
   __ds390_builtins,             /* table of builtin functions */
   GPOINTER,                    /* treat unqualified pointers as "generic" pointers */