From 9a382ea007dd372b41f444337bedfacba4c782aa Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Mon, 8 Oct 2001 18:22:35 +0000 Subject: [PATCH] * 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 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1377 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 16 ++++++++++++++++ device/lib/_divuint.c | 2 +- device/lib/_divulong.c | 2 +- device/lib/_moduint.c | 2 +- device/lib/_modulong.c | 2 +- device/lib/_mulint.c | 2 +- device/lib/_mullong.c | 2 +- src/SDCCmain.c | 4 ++++ 8 files changed, 26 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 203d72e5..a4762ce1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2001-10-08 Bernhar Held + + * 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 * 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. diff --git a/device/lib/_divuint.c b/device/lib/_divuint.c index f85aa8a2..43a11ee4 100644 --- a/device/lib/_divuint.c +++ b/device/lib/_divuint.c @@ -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) diff --git a/device/lib/_divulong.c b/device/lib/_divulong.c index 6b1e7fd3..ecebfa25 100644 --- a/device/lib/_divulong.c +++ b/device/lib/_divulong.c @@ -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) diff --git a/device/lib/_moduint.c b/device/lib/_moduint.c index bb58a4bb..e4846659 100644 --- a/device/lib/_moduint.c +++ b/device/lib/_moduint.c @@ -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) diff --git a/device/lib/_modulong.c b/device/lib/_modulong.c index 8008487f..c2f8927d 100644 --- a/device/lib/_modulong.c +++ b/device/lib/_modulong.c @@ -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) diff --git a/device/lib/_mulint.c b/device/lib/_mulint.c index 960264a5..ce92e5b6 100644 --- a/device/lib/_mulint.c +++ b/device/lib/_mulint.c @@ -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) diff --git a/device/lib/_mullong.c b/device/lib/_mullong.c index feff2d63..bf8a355f 100644 --- a/device/lib/_mullong.c +++ b/device/lib/_mullong.c @@ -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) diff --git a/src/SDCCmain.c b/src/SDCCmain.c index a67f2bc2..60af6f82 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -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) { -- 2.47.2