Makefile.in (c-iterate.o): Depend on expr.h.
* Makefile.in (c-iterate.o): Depend on expr.h. * c-iterate.c: Include "expr.h". (expand_expr): Use proper values when calling the function. From-SVN: r20610
This commit is contained in:
parent
0ddc9a9492
commit
3ca4021d53
@ -2,8 +2,13 @@ Fri Jun 19 22:55:14 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* c-lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
|
||||
|
||||
* Makefile.in (c-iterate.o): Depend on expr.h.
|
||||
|
||||
Fri Jun 19 20:38:34 1998 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* c-iterate.c: Include "expr.h".
|
||||
(expand_expr): Use proper values when calling the function.
|
||||
|
||||
* explow.c (emit_stack_save): Add prototype for FCN.
|
||||
(emit_stack_restore): Likewise.
|
||||
|
||||
|
@ -1272,7 +1272,7 @@ c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
|
||||
c-pragma.o: c-pragma.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) except.h \
|
||||
function.h defaults.h c-pragma.h toplev.h
|
||||
c-iterate.o: c-iterate.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-tree.h \
|
||||
flags.h toplev.h
|
||||
flags.h toplev.h expr.h
|
||||
|
||||
collect2$(exeext): collect2.o tlink.o hash.o cplus-dem.o underscore.o \
|
||||
version.o choose-temp.o $(LIBDEPS)
|
||||
|
@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
|
||||
#include "obstack.h"
|
||||
#include "rtl.h"
|
||||
#include "toplev.h"
|
||||
#include "expr.h"
|
||||
|
||||
/*
|
||||
KEEPING TRACK OF EXPANSIONS
|
||||
@ -287,7 +288,8 @@ iterator_loop_prologue (idecl, start_note, end_note)
|
||||
|
||||
/* Force the save_expr in DECL_INITIAL to be calculated
|
||||
if it hasn't been calculated yet. */
|
||||
expand_expr (DECL_INITIAL (idecl), const0_rtx, VOIDmode, 0);
|
||||
expand_expr (DECL_INITIAL (idecl), const0_rtx, VOIDmode,
|
||||
EXPAND_NORMAL);
|
||||
|
||||
if (DECL_RTL (idecl) == 0)
|
||||
expand_decl (idecl);
|
||||
@ -298,7 +300,7 @@ iterator_loop_prologue (idecl, start_note, end_note)
|
||||
/* Initialize counter. */
|
||||
expr = build (MODIFY_EXPR, TREE_TYPE (idecl), idecl, integer_zero_node);
|
||||
TREE_SIDE_EFFECTS (expr) = 1;
|
||||
expand_expr (expr, const0_rtx, VOIDmode, 0);
|
||||
expand_expr (expr, const0_rtx, VOIDmode, EXPAND_NORMAL);
|
||||
|
||||
expand_start_loop_continue_elsewhere (1);
|
||||
|
||||
@ -339,7 +341,7 @@ iterator_loop_epilogue (idecl, start_note, end_note)
|
||||
incr = build_binary_op (PLUS_EXPR, idecl, integer_one_node, 0);
|
||||
incr = build (MODIFY_EXPR, TREE_TYPE (idecl), idecl, incr);
|
||||
TREE_SIDE_EFFECTS (incr) = 1;
|
||||
expand_expr (incr, const0_rtx, VOIDmode, 0);
|
||||
expand_expr (incr, const0_rtx, VOIDmode, EXPAND_NORMAL);
|
||||
test = build_binary_op (LT_EXPR, idecl, DECL_INITIAL (idecl), 0);
|
||||
expand_exit_loop_if_false (0, test);
|
||||
expand_end_loop ();
|
||||
|
Loading…
Reference in New Issue
Block a user