* support/regression/tests/bug1551947.c: new, added
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 5 Sep 2006 10:17:23 +0000 (10:17 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 5 Sep 2006 10:17:23 +0000 (10:17 +0000)
* 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

ChangeLog
src/SDCCsymt.h
support/regression/tests/bug1551947.c [new file with mode: 0644]

index 1bc23eec619e456b8c0bae30f71dd16e203117bb..685c708b80d7e4bd9eafd8dc4dd82afee3724d3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
        * 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>
 
index aae73278c3a7b010a976fa5209a3b72d800f3245..c30beab8c1570c0695023c74117c49828f037cab 100644 (file)
@@ -169,7 +169,7 @@ typedef struct specifier
     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  */
@@ -280,7 +280,7 @@ typedef struct symbol
     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
diff --git a/support/regression/tests/bug1551947.c b/support/regression/tests/bug1551947.c
new file mode 100644 (file)
index 0000000..f3980cd
--- /dev/null
@@ -0,0 +1,15 @@
+/*\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