This is the mail archive of the gcc-patches@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: enhanced structure offset tracking


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


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