]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.h (TREE_STRING_POINTER): Wrap in "const char *".
authorRanjit Mathew <rmathew@hotmail.com>
Thu, 14 Oct 2004 16:44:43 +0000 (16:44 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Thu, 14 Oct 2004 16:44:43 +0000 (16:44 +0000)
* tree.h (TREE_STRING_POINTER): Wrap in "const char *".
(struct tree_string): Remove "const" qualifier for "str".

From-SVN: r89039

gcc/ChangeLog
gcc/tree.h

index d38d84d071d3a1e35f12412b555b051394737aa3..bd72a60d290805c71c8ee78ce19cfa679b2d530f 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
+       (struct tree_string): Remove "const" qualifier for "str".
+
 2004-10-14  Ira Rosen  <irar@il.ibm.com>
 
        * tree-vectorizer.c (vect_analyze_data_refs): Call
index ec2ce118df26d824ff3a25e31849034cf8c5af3f..7bab93d478e0bc7be266a7cc5045bd1d8e6edf87 100644 (file)
@@ -1060,13 +1060,14 @@ struct tree_real_cst GTY(())
 
 /* In a STRING_CST */
 #define TREE_STRING_LENGTH(NODE) (STRING_CST_CHECK (NODE)->string.length)
-#define TREE_STRING_POINTER(NODE) (STRING_CST_CHECK (NODE)->string.str)
+#define TREE_STRING_POINTER(NODE) \
+  ((const char *)(STRING_CST_CHECK (NODE)->string.str))
 
 struct tree_string GTY(())
 {
   struct tree_common common;
   int length;
-  const char str[1];
+  char str[1];
 };
 
 /* In a COMPLEX_CST node.  */