* src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 8 Oct 2001 18:22:35 +0000 (18:22 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 8 Oct 2001 18:22:35 +0000 (18:22 +0000)
        * src/device/lib/_mulint.c  : removed hint: nooverlay bug
        * src/device/lib/_mullong.c : removed hint: nooverlay bug
        * src/device/lib/_divuint.c : removed hint: nooverlay bug
        * src/device/lib/_divulong.c: removed hint: nooverlay bug
        * src/device/lib/_moduint.c : removed hint: nooverlay bug
        * src/device/lib/_modulong.c: removed hint: nooverlay bug

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1377 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/_divuint.c
device/lib/_divulong.c
device/lib/_moduint.c
device/lib/_modulong.c
device/lib/_mulint.c
device/lib/_mullong.c
src/SDCCmain.c

index 203d72e586b108d422b7846c18c431314eac731d..a4762ce1ed44e2d31e8c60cced41e80c01c91cc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2001-10-08  Bernhar Held  <bernhard@bernhardheld.de>
+
+       * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
+
+       * src/device/lib/_mulint.c  : removed hint: nooverlay bug
+
+       * src/device/lib/_mullong.c : removed hint: nooverlay bug
+
+       * src/device/lib/_divuint.c : removed hint: nooverlay bug
+
+       * src/device/lib/_divulong.c: removed hint: nooverlay bug
+
+       * src/device/lib/_moduint.c : removed hint: nooverlay bug
+
+       * src/device/lib/_modulong.c: removed hint: nooverlay bug
+
 2001-10-07  Michael Hope  <michaelh@juju.net.nz>
 
        * src/z80/gen.c (setupPair): Added 'extended stack' support for the z80.  Can now have local variables or parameters of more than 127 bytes in size.  Increadibly slow, but it will work.  Currently anything involving the carry flag.
index f85aa8a250cbf56100c1efbc71f35c7e109096c5..43a11ee4d2b17eaf1e3e202a9bdaf0ab2769f614 100644 (file)
@@ -78,7 +78,7 @@ _divuint_dummy (void) _naked
 
 #else // SDCC_STACK_AUTO
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index 6b1e7fd3e80b0d03049a66f067bc1c88708c9c00..ecebfa2569553e21e921d90028fbfee6a0022a10 100644 (file)
@@ -62,7 +62,7 @@ _divlong_dummy (void) _naked
                #define reste2  r6
                #define reste3  r7
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index bb58a4bb9c3bcd06690b985a5b417c42d676154c..e48466595fb0bc9894620ac8013a74d2aef63dbb 100644 (file)
@@ -78,7 +78,7 @@ _moduint_dummy (void) _naked
 
 #else // SDCC_STACK_AUTO
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index 8008487fae3c9bcee394c2d7b94cb9ddf3bf59c2..c2f8927db10c10214ecdafd1c188eabd65179bf4 100644 (file)
@@ -52,7 +52,7 @@ _modlong_dummy (void) _naked
 
        __modulong:
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index 960264a5eb0d31afdc8e04e1a57bb050fdb27517..ce92e5b61990009193163bdfa95b47e30ed7f737 100644 (file)
@@ -121,7 +121,7 @@ _mulint_dummy (void) _naked
 
 #if !defined(SDCC_STACK_AUTO)
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index feff2d638b12298c9acd78d0331de9f19c09329f..bf8a355ff4be4f2f86ac8a517493a92b95cc9448 100644 (file)
@@ -79,7 +79,7 @@ _mullong_dummy (void) _naked
 
 #if !defined SDCC_STACK_AUTO
 
-#if defined(SDCC_NOOVERLAY)            // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if defined(SDCC_NOOVERLAY)
                .area DSEG    (DATA)
 #else
                .area OSEG    (OVR,DATA)
index a67f2bc21d44d761a25a02502b97e6521a7594ae..60af6f82205f7b04086945b0d1a7aaaaadbc9e60 100644 (file)
@@ -1233,6 +1233,10 @@ preProcess (char **envp)
       if (options.stack10bit)
        addToList (preArgv, "-DSDCC_STACK_TENBIT");
 
+      /* set the macro for no overlay  */
+      if (options.noOverlay)
+        addToList (preArgv, "-DSDCC_NOOVERLAY");
+
       /* set the macro for large model  */
       switch (options.model)
        {