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

Gabriel Dos Reis gdr@cs.tamu.edu
Wed Oct 13 21:55:00 GMT 2004


Richard Henderson <rth@redhat.com> writes:

| 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.

Thanks.

-- Gaby



More information about the Gcc mailing list