* device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint$
* device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1205
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2001-09-01 Michael Hope <michaelh@juju.net.nz>
+
+ * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
+
+ * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
+
+ * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
+
2001-08-30 Paul Stoffregen <paul@pjrc.com>
* added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
puts.c gets.c \
assert.c _strcat.c \
_modslong.c _modulong.c \
- _mulslong.c _mululong.c _mulint.c _mullong.c \
+ _mullong.c \
_divslong.c _divulong.c
Z80OBJECTS = $(Z80SOURCES:%.c=$(PORTDIR)/%.o)
long
_mulslong (long a, long b) // obsolete
{
- _mululong (a, b);
+ return _mululong (a, b);
}
#endif // _MULLONG_ASM
);
_exitEmu();
+
+ return 0;
}
# Port specification for compiling on the host machines version of gcc
SDCC = gcc
-SDCCFLAGS = -Wall -fsigned-char
+SDCCFLAGS = -Wall -fsigned-char -DREENTRANT= -DGENERIC=
EXEEXT = .bin
{
putchar(c);
}
+
+void _exitEmu(void)
+{
+ exit(0);
+}
{
UNUSED(Ch_1_Par_Val);
UNUSED(Ch_2_Par_Val);
+
+ return 0;
}
i = 5;
- LOG(("i*5 == 25 = %u\n", (int)i*5));
+ LOG(("i*5 == 25 = %u\n", (int)(i*5)));
result = i*5;
ASSERT(result == 25);
- LOG(("i*-4 == -20 = %u\n", (int)i*-4));
+ LOG(("i*-4 == -20 = %u\n", (int)(i*-4)));
ASSERT(i*-4 == -20);
i = -10;
- LOG(("i*12 == -120 = %u\n", (int)i*12));
+ LOG(("i*12 == -120 = %u\n", (int)(i*12)));
ASSERT(i*12 == -120);
- LOG(("i*-3 == 30 = %u\n", (int)i*-3));
+ LOG(("i*-3 == 30 = %u\n", (int)(i*-3)));
ASSERT(i*-3 == 30);
-
- LOG(("30 == %u\n", (int)i*-3));
}
void
ASSERT(smallSparseZero[6] == 0);
ASSERT(smallSparseZero[7] == 0);
ASSERT(smallSparseZero[8] == 0);
+
+ // Make the compiler happy
+ ASSERT(smallSparseZeroTail[0] == 1);
}
#ifdef __mcs51