test _mullong.c on host too
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 12:16:19 +0000 (12:16 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 12:16:19 +0000 (12:16 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2871 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/ports/host/spec.mk
support/regression/tests/libmullong.c

index 103dedcef0feedec29eb933f72100dbbb7991a60..a469d53ceae2d69c3ae069a9e7881309adb3593d 100644 (file)
@@ -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
index 9746671da1ab09a2462bc98ac15864af77b51568..99a755a64cb4de568ca9f1355d007043baf4d7ce 100644 (file)
@@ -4,10 +4,17 @@
  */
 #include <testfwk.h>
 
+#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