* device/lib/_mullong.c: fixed for "--model-large --int-long-reent" (resp. --stack...
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 31 Aug 2003 11:26:29 +0000 (11:26 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 31 Aug 2003 11:26:29 +0000 (11:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2864 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/_mullong.c

index c2d072abf8088e325e37d6e3a0afc615fe51a965..9dce4357d9b18cbadfd2cf98a91b84bd3ffaee3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@
        * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
        * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
        If they pop r0/r1 they must be called in the opposite order than aopOp().
+       * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
+       (resp. --stack-auto), prepared for --xstack
 
 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann@web.de>
 
index 6b40ea6fb1f9f66f34e6afa331ad46d0b5dedff0..59d85a7eb880713513c77b5d0408cbd487fbc909 100644 (file)
@@ -502,7 +502,9 @@ union bil {
         unsigned long l;
         struct { unsigned char b0; unsigned int i12; unsigned char b3;} bi;
 } ;
-#if defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390)
+#if defined(SDCC_USE_XSTACK)
+#  define bcast(x) ((union bil pdata *)&(x))
+#elif (defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390)) && !defined(SDCC_STACK_AUTO)
 #  define bcast(x) ((union bil xdata *)&(x))
 #elif defined(__z80) || defined(__gbz80)
 #  define bcast(x) ((union bil *)&(x))