diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2004-10-14 16:44:43 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2004-10-14 16:44:43 +0000 |
commit | 7238c5ec254957652393d695e309be7ad8985451 (patch) | |
tree | e868d6cf5d5f8c34a1e5f3872936c079e9901bb3 /gcc/tree.h | |
parent | 322ae40b1abb7b60b724c6ecc7bcb8afc4a35be4 (diff) | |
download | gcc-7238c5ec254957652393d695e309be7ad8985451.zip gcc-7238c5ec254957652393d695e309be7ad8985451.tar.gz gcc-7238c5ec254957652393d695e309be7ad8985451.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |