This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]