* src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
define SUPPORT_BIT_TYPES 0, removed unused bit variables
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4187
4a8a32a2-be11-0410-ad9d-
d568d2c75423
CC = sdcc
LINKER = gplink
TARGETPIC = 16f877
-CFLAGS = -Wl,--map -I ../../device/include/pic -mpic14 -pp$(TARGETPIC)
+CFLAGS = -Wl,--map -I ../../device/include/pic -mpic14 -pp$(TARGETPIC) -Wl,-q
.SUFFIXES: .asm .c .cod .stc
and2.c \
b.c \
bool1.c \
- bool2.c \
bool3.c \
call1.c \
compare.c \
# rotate7.c \
# string1.c \
# struct1.c \
+# bool2.c \
COD := $(patsubst %.c, %.cod, $(SRC))
ASM := $(patsubst %.c, %.asm, $(SRC))
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
/* Some compilers that support bit types do not support bit arithmetic
* (like bitx = bity + bitz;) */
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
unsigned char failures=0;
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
unsigned char failures=0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
-bit bit1 = 0;
unsigned int ui0 = 0;
unsigned int ui1 = 0;
unsigned char uc0 = 0;
unsigned char failures = 0;
-bit bit0 = 0;
unsigned int uint0 = 0;
unsigned int uint1 = 0;
unsigned char uchar0 = 0;
*/
-bit bit0 = 0;
-bit bit1 = 0;
-
unsigned char failures = 0;
unsigned char achar0 = 0;
unsigned char failures = 0;
unsigned char dummy = 0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures = 0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures = 0;
-bit bit0 = 0;
int int0 = 0;
int int1 = 0;
char char0 = 0;
unsigned char failures = 0;
-bit bit0 = 0;
int int0 = 0;
int int1 = 0;
char char0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int uint0 = 0;
unsigned int uint1 = 0;
unsigned char uchar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int uint0 = 0;
unsigned int uint1 = 0;
unsigned char uchar0 = 0;
#include "gpsim_assert.h"
+/* bit types are not ANSI - so provide a way of disabling bit types
+ * if this file is used to test other compilers besides SDCC */
+#define SUPPORT_BIT_TYPES 0
+
unsigned char failures=0;
+#if SUPPORT_BIT_TYPES
bit bit0 = 0;
bit bit1 = 0;
bit bit2 = 0;
+#endif
unsigned int uint0 = 0;
unsigned int uint1 = 0;
}
+#if SUPPORT_BIT_TYPES
void or_bits1(void)
{
bit0 = bit1 | bit2;
}
+#endif
void main(void)
{
uint1=1;
or_uint2uint();
+#if SUPPORT_BIT_TYPES
or_bits1();
if(bit0)
failures++;
or_bits2();
if(!bit0)
failures++;
-
+#endif
done();
}
unsigned char failures=0;
-bit bit0 = 0;
unsigned int uint0 = 0;
unsigned int uint1 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
unsigned int uint0 = 0;
unsigned int uint1 = 0;
unsigned char uchar0 = 0;
unsigned char failures=0;
-bit bit0 = 0;
signed int aint0 = 0;
signed int aint1 = 0;
signed char achar0 = 0;
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
/* Some compilers that support bit types do not support bit arithmetic
* (like bitx = bity + bitz;) */
failures++;
#endif
}
-#endif
/* sub_bit2uchar(void) - assumes bit0 = 1, achar0 = 7 */
failures++;
}
+#endif
void sub_ucharFromLit(void)
{
/* bit types are not ANSI - so provide a way of disabling bit types
* if this file is used to test other compilers besides SDCC */
-#define SUPPORT_BIT_TYPES 1
+#define SUPPORT_BIT_TYPES 0
/* Some compilers that support bit types do not support bit arithmetic
* (like bitx = bity + bitz;) */
#include "gpsim_assert.h"
unsigned char failures=0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;
}
-main(void)
+void main(void)
{
achar0 = 0;
unsigned char failures = 0;
-bit bit0 = 0;
unsigned int aint0 = 0;
unsigned int aint1 = 0;
unsigned char achar0 = 0;