This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling GCC With a C++ Compiler (g++)
On Wed, Oct 13, 2004 at 06:05:57PM +0530, Ranjit Mathew wrote:
> #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];
This is ok.
r~