Compiling GCC With a C++ Compiler (g++)

Richard Henderson rth@redhat.com
Wed Oct 13 19:13:00 GMT 2004


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~



More information about the Gcc mailing list