diff options
author | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-14 16:44:43 +0000 |
---|---|---|
committer | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-14 16:44:43 +0000 |
commit | 7d95f6a377f7e5458d2a4ac29109c073a72172a7 (patch) | |
tree | e868d6cf5d5f8c34a1e5f3872936c079e9901bb3 /gcc/tree.h | |
parent | bec5484490aa391cb41f451f3cb6e1dff50f427c (diff) | |
download | gcc-7d95f6a377f7e5458d2a4ac29109c073a72172a7.tar.gz |
* tree.h (TREE_STRING_POINTER): Wrap in "const char *".
(struct tree_string): Remove "const" qualifier for "str".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index ec2ce118df2..7bab93d478e 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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. */ |