This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: enhanced structure offset tracking
Richard Henderson wrote:
>
> > David Edelsohn wrote:
> > > Yes, you are right, sorry about the mistaken report. However,
> > > your change has introduced a new warning:
> > >
> > > /gcc/dje/src/gcc/reload1.c: In function `alter_reg':
> > > /gcc/dje/src/gcc/reload1.c:2062: warning: passing arg 2 of `set_mem_expr'
> > > from incompatible pointer type
>
> I saw that, but I couldn't figure out why.
>
> On Mon, Dec 03, 2001 at 03:57:41PM +0000, Graham Stott wrote:
> > I think all that's needed here is for reload1.c to include "tree.h".
>
> Why? system.h has
>
> union tree_node;
> typedef union tree_node *tree;
>
> which ought to be enough to pass around an opaque pointer.
>
> r~
I wonder if it has anything to do with the
typedef tree_union *_function_tree;
#define tree _function_tree;
that occurs in function.h
Graham