From: bernhardheld Date: Thu, 4 Sep 2003 12:14:29 +0000 (+0000) Subject: device/lib/_mullong.c: replaced int by short for gcc X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9f2e979c13bf3e3c6706961b53c6a52c6659dac0;p=fw%2Fsdcc device/lib/_mullong.c: replaced int by short for gcc git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2870 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ca4ef332..0d46e94c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-09-04 Bernhard Held + + * device/lib/_mullong.c: replaced int by short for gcc + 2003-08-31 Erik Petrich * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX diff --git a/device/lib/_mullong.c b/device/lib/_mullong.c index 59d85a7e..58ee9915 100644 --- a/device/lib/_mullong.c +++ b/device/lib/_mullong.c @@ -493,18 +493,18 @@ _mullong_dummy (void) _naked #else // _MULLONG_ASM struct some_struct { - int a ; + short a ; char b; long c ;}; union bil { struct {unsigned char b0,b1,b2,b3 ;} b; - struct {unsigned int lo,hi ;} i; + struct {unsigned short lo,hi ;} i; unsigned long l; - struct { unsigned char b0; unsigned int i12; unsigned char b3;} bi; + struct { unsigned char b0; unsigned short i12; unsigned char b3;} bi; } ; #if defined(SDCC_USE_XSTACK) # define bcast(x) ((union bil pdata *)&(x)) -#elif (defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390)) && !defined(SDCC_STACK_AUTO) +#elif (defined(SDCC_MODEL_LARGE) || defined (SDCC_ds390) || defined (SDCC_ds400)) && !defined(SDCC_STACK_AUTO) # define bcast(x) ((union bil xdata *)&(x)) #elif defined(__z80) || defined(__gbz80) # define bcast(x) ((union bil *)&(x))