This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: expr.h use of "tree"
- To: dje at watson dot ibm dot com, mark at codesourcery dot com
- Subject: Re: expr.h use of "tree"
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sat, 22 May 1999 08:55:28 -0400 (EDT)
- Cc: egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
> From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
>
> > From: David Edelsohn <dje@watson.ibm.com>
> >
> > The uses of type "tree" in gcc/expr.h need to be protected by
> > #ifdef TREE_CODE.
> >
> > Building the current development sources displays a
> > number of warnings because of the undefined type used in the prototype.
> > Thanks, David
>
>
> On Irix6, its not just a warning, its an error.
>
This small patch was sufficient to fix it. I'll be away so,
once its approved, if someone else would check it in this weekend I'd
appreciate it. (I think the 2.95 branch needs it too.)
Thanks,
--Kaveh
--- egcs-CVS19990521/gcc/expr.h~ Thu May 20 16:01:17 1999
+++ egcs-CVS19990521/gcc/expr.h Fri May 21 21:32:24 1999
@@ -1015,11 +1015,13 @@
enum machine_mode,
enum expand_modifier modifier));
+#ifdef TREE_CODE
/* Hook called by output_constant for language-specific tree codes.
It is up to the language front-end to install a hook if it has any
such codes that output_constant needs to know about. Returns a
language-independent constant equivalent to its input. */
extern union tree_node * (*lang_expand_constant) PROTO((tree));
+#endif
extern void init_all_optabs PROTO ((void));
extern void init_mov_optab PROTO ((void));
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions