tree.h (TREE_STRING_POINTER): Wrap in "const char *".
* tree.h (TREE_STRING_POINTER): Wrap in "const char *". (struct tree_string): Remove "const" qualifier for "str". From-SVN: r89039
This commit is contained in:
parent
322ae40b1a
commit
7238c5ec25
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue