* src/SDCCsymt.h: strings are char* not byte*
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4362
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
and OP_DEFS
* src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
and OP_DEFS
+ * support/regression/tests/bug1551947.c: new, added
+ * src/SDCCsymt.h: strings are char* not byte*
2006-09-05 Raphael Neider <rneider AT web.de>
2006-09-05 Raphael Neider <rneider AT web.de>
union
{ /* Values if constant or enum */
TYPE_TARGET_INT v_int; /* 2 bytes: int and char values */
union
{ /* Values if constant or enum */
TYPE_TARGET_INT v_int; /* 2 bytes: int and char values */
- TYPE_TARGET_CHAR *v_char; /* character string */
+ char *v_char; /* character string */
TYPE_TARGET_UINT v_uint; /* 2 bytes: unsigned int const value */
TYPE_TARGET_LONG v_long; /* 4 bytes: long constant value */
TYPE_TARGET_ULONG v_ulong; /* 4 bytes: unsigned long constant value */
TYPE_TARGET_UINT v_uint; /* 2 bytes: unsigned int const value */
TYPE_TARGET_LONG v_long; /* 4 bytes: long constant value */
TYPE_TARGET_ULONG v_ulong; /* 4 bytes: unsigned long constant value */
unsigned isinvariant:1; /* is a loop invariant */
unsigned cdef:1; /* compiler defined symbol */
unsigned addrtaken:1; /* address of the symbol was taken */
unsigned isinvariant:1; /* is a loop invariant */
unsigned cdef:1; /* compiler defined symbol */
unsigned addrtaken:1; /* address of the symbol was taken */
- unsigned isreqv:1; /* is the register quivalent of a symbol */
+ unsigned isreqv:1; /* is the register equivalent of a symbol */
unsigned udChked:1; /* use def checking has been already done */
/* following flags are used by the backend
unsigned udChked:1; /* use def checking has been already done */
/* following flags are used by the backend
--- /dev/null
+/*\r
+ bug1551947.c\r
+*/\r
+\r
+#include <testfwk.h>\r
+\r
+xdata float z;\r
+xdata float x = 1.0;\r
+\r
+void\r
+testBug(void)\r
+{\r
+ z = x * x;\r
+ ASSERT( z == 1.0 );\r
+}\r