diff options
author | Jeff Law <law@gcc.gnu.org> | 1998-06-19 16:01:27 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-06-19 16:01:27 -0600 |
commit | 3ca4021d535dfc70e44bd07c8a4d72369dbe74b0 (patch) | |
tree | f2287653a1e0650493afdfa0e2f6796e7ce8a758 /gcc/c-iterate.c | |
parent | 0ddc9a949208001dd810494e68247f0982269763 (diff) | |
download | gcc-3ca4021d535dfc70e44bd07c8a4d72369dbe74b0.zip gcc-3ca4021d535dfc70e44bd07c8a4d72369dbe74b0.tar.gz gcc-3ca4021d535dfc70e44bd07c8a4d72369dbe74b0.tar.bz2 |
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
Diffstat (limited to 'gcc/c-iterate.c')
-rw-r--r-- | gcc/c-iterate.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-iterate.c b/gcc/c-iterate.c index 97235e8..b8f51d0 100644 --- a/gcc/c-iterate.c +++ b/gcc/c-iterate.c @@ -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 (); |