From 85233d43ae2d506b9cc324c9e86254ea47b1b348 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Thu, 4 Sep 2003 12:16:19 +0000 Subject: [PATCH] test _mullong.c on host too git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2871 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- support/regression/ports/host/spec.mk | 2 +- support/regression/tests/libmullong.c | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/support/regression/ports/host/spec.mk b/support/regression/ports/host/spec.mk index 103dedce..a469d53c 100644 --- a/support/regression/ports/host/spec.mk +++ b/support/regression/ports/host/spec.mk @@ -1,6 +1,6 @@ # Port specification for compiling on the host machines version of gcc SDCC = $(shell ( sh -c "gcc --version" 2>&1 ) > /dev/null && echo gcc || echo cc) -SDCCFLAGS = -DPORT_HOST=1 -Wall -fsigned-char -DREENTRANT= +SDCCFLAGS = -DPORT_HOST=1 -Wall -fsigned-char -fpack-struct -DREENTRANT= EXEEXT = .bin OBJEXT = .o diff --git a/support/regression/tests/libmullong.c b/support/regression/tests/libmullong.c index 9746671d..99a755a6 100644 --- a/support/regression/tests/libmullong.c +++ b/support/regression/tests/libmullong.c @@ -4,10 +4,17 @@ */ #include +#define type_{type} + #if defined(PORT_HOST) -# define _mullong(a,b) (a*b) +# if defined(type_c) +# define _SDCC_NO_ASM_LIB_FUNCS 1 +# define near +# include "../../../../../device/lib/_mullong.c" +# else +# define _mullong(a,b) (a*b) +# endif #else -# define type_{type} # if defined(type_c) # define _SDCC_NO_ASM_LIB_FUNCS 1 # endif -- 2.30.2