* support/regression/valdiag/tests/switch.c,
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 3 Jul 2006 21:06:08 +0000 (21:06 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 3 Jul 2006 21:06:08 +0000 (21:06 +0000)
* support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
* support/regression/tests/libmullong.c: fixed for host
* support/regression/ports/host/spec.mk: disable all warnings for host, SDCC runs with --less-pedantic too

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4262 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/ports/host/spec.mk
support/regression/tests/libmullong.c
support/valdiag/tests/constantRange.c
support/valdiag/tests/switch.c

index a11d400d0f97643b144a2b0c628f91a5e284e845..60e2bc8d46cdaedbdc3188726b7f074532f46b3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
+
+       * support/regression/valdiag/tests/switch.c,
+       * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
+       * support/regression/tests/libmullong.c: fixed for host
+       * support/regression/ports/host/spec.mk: disable all warnings for host,
+       SDCC runs with --less-pedantic too
+
 2006-07-03 Borut Razem <borut.razem AT siol.net>
 
        * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
index ab3f89f440158466fa155b408a39de0d06bb0520..8112dd4690861188a68a776b8697546f567712eb 100644 (file)
@@ -1,6 +1,10 @@
 # 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 -fpack-struct -DREENTRANT= -I$(top_builddir) -I$(top_srcdir)
+SDCCFLAGS = -DPORT_HOST=1 -fsigned-char -fpack-struct -DREENTRANT= -I$(top_builddir) -I$(top_srcdir)
+# disable all warnings:
+SDCCFLAGS+= -w
+# enable all warnings:
+#SDCCFLAGS+= -Wall
 
 EXEEXT = .bin
 OBJEXT = .o
index 2445c4f39e7245dc652edc156562f9b09af8f7a0..4ab6ee755533ac32402668a9f921a2ebdb3ae3e2 100644 (file)
  */
 #if defined(PORT_HOST)
 
+#define TYPE_TARGET_CHAR  TYPE_BYTE
+#define TYPE_TARGET_INT   TYPE_WORD
+#define TYPE_TARGET_LONG  TYPE_DWORD
+#define TYPE_TARGET_UCHAR TYPE_UBYTE
+#define TYPE_TARGET_UINT  TYPE_UWORD
+#define TYPE_TARGET_ULONG TYPE_UDWORD
+
 #if defined(type_c) && !defined(WORDS_BIGENDIAN)
 struct
 {
index 9253aefdefdd53ec0afc0665c8efcfd674d1967c..620b2e667cd504feaacd8c268838dee0b09d6837 100644 (file)
@@ -222,25 +222,25 @@ void foo(void)
     unsigned ub3:3;
   } str;
 
-  str.sb1 = -2;                        /* WARNING(SDCC) */
+  str.sb1 = -2;                        /* WARNING */
   str.sb1 = -1;
   str.sb1 =  1;
-  str.sb1 =  2;                        /* WARNING(SDCC) */
+  str.sb1 =  2;                        /* WARNING */
 
-  str.ub1 = -2;                        /* WARNING(SDCC) */
+  str.ub1 = -2;                        /* WARNING */
   str.ub1 = -1;
   str.ub1 =  1;
-  str.ub1 =  2;                        /* WARNING(SDCC) */
+  str.ub1 =  2;                        /* WARNING */
 
-  str.sb3 = -5;                        /* WARNING(SDCC) */
+  str.sb3 = -5;                        /* WARNING */
   str.sb3 = -4;
   str.sb3 =  7;
-  str.sb3 =  8;                        /* WARNING(SDCC) */
+  str.sb3 =  8;                        /* WARNING */
 
-  str.ub3 = -5;                        /* WARNING(SDCC) */
+  str.ub3 = -5;                        /* WARNING */
   str.ub3 = -4;
   str.ub3 =  7;
-  str.ub3 =  8;                        /* WARNING(SDCC) */
+  str.ub3 =  8;                        /* WARNING */
 
   ASSERT (! (-2 == str.sb1));  /* WARNING */
   ASSERT (  (-1 == str.sb1));
index 6a29a9d8e0c66ef6045060875d2d4586c7da008f..81a7145407b7b121bb119ef37c4701e8364f0aa6 100644 (file)
@@ -69,7 +69,7 @@ char foo(void)
   switch(x)
     {
       char y;
-      x++;             /* WARNING */
+      x++;             /* WARNING(SDCC) */
       
       case 0:
         return 0;
@@ -88,7 +88,7 @@ char foo(void)
 {
   switch(x)
     {
-      char y=1;                /* WARNING */
+      char y=1;                /* WARNING(SDCC) */
       
       case 0:
         return 0;
@@ -133,6 +133,7 @@ char foo(void)
         y = x;
         return x;
     }
+  return 0;
 }
 #endif