From ec755c0dfb80b5ab3136c3b915d16a88a0895cd8 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Sun, 31 Aug 2003 11:26:29 +0000 Subject: [PATCH] * device/lib/_mullong.c: fixed for "--model-large --int-long-reent" (resp. --stack-auto), prepared for --xstack git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2864 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 2 ++ device/lib/_mullong.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c2d072ab..9dce4357 100644 --- 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 diff --git a/device/lib/_mullong.c b/device/lib/_mullong.c index 6b40ea6f..59d85a7e 100644 --- a/device/lib/_mullong.c +++ b/device/lib/_mullong.c @@ -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)) -- 2.47.2