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,

David Edelsohn wrote:
> 
> >>>>> Richard Henderson writes:
> 
> Richard> Err, no,
> 
> Richard> #define REGNO_DECL(REGNO) (cfun->emit->regno_decl[REGNO])
> Richard> set_mem_expr (x, REGNO_DECL (i));
> 
> Richard> it calls set_mem_expr with regno_decl[regno], which is a tree.
> 
>         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
> 
> David

I think all that's needed here is for reload1.c to include "tree.h".

Graham

ChangeLog

	* reload1.c : Include tree.h

	* Makefile.in: reload1.o update dependecies.

-------------------------------------------------------------------
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload1.c,v
retrieving revision 1.315
diff -c -p -r1.315 reload1.c
*** reload1.c   2001/12/02 19:04:23     1.315
--- reload1.c   2001/12/03 15:52:33
*************** Software Foundation, 59 Temple Place - S
*** 25,30 ****
--- 25,31 ----
  #include "machmode.h"
  #include "hard-reg-set.h"
  #include "rtl.h"
+ #include "tree.h"
  #include "tm_p.h"
  #include "obstack.h"
  #include "insn-config.h"
------------------------------------------------------------------


-------------------------------------------------------------------
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.797
diff -c -p -r1.797 Makefile.in
*** Makefile.in 2001/12/02 14:38:06     1.797
--- Makefile.in 2001/12/03 15:53:54
*************** varray.o : varray.c $(CONFIG_H) $(SYSTEM
*** 1498,1504 ****
  reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h output.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \
     $(REGS_H) function.h real.h toplev.h $(TM_P_H)
! reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) real.h flags.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
     $(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h cselib.h $(TM_P_H) \
     except.h
--- 1502,1508 ----
  reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h output.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) hard-reg-set.h insn-config.h \
     $(REGS_H) function.h real.h toplev.h $(TM_P_H)
! reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
     $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
     $(BASIC_BLOCK_H) $(RECOG_H) output.h function.h toplev.h cselib.h $(TM_P_H) \
     except.h
----------------------------------------------------------------


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