device/lib/_mullong.c: replaced int by short for gcc
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 12:14:29 +0000 (12:14 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 12:14:29 +0000 (12:14 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2870 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/_mullong.c

index ca4ef33204bc308f45d8d683280823f27fc359cd..0d46e94c5b5f02582440a543a50c504f47186f1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-04  Bernhard Held <bernhard@bernhardheld.de>
+
+       * device/lib/_mullong.c: replaced int by short for gcc
+
 2003-08-31  Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
index 59d85a7eb880713513c77b5d0408cbd487fbc909..58ee9915ca51207c2c9d58097281e0744632b3bc 100644 (file)
@@ -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))