aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@tanya.rutgers.edu>1997-09-22 17:41:48 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-22 11:41:48 -0600
commit9524f769a795d7ad5b9a1d5266d372ef3f466f4c (patch)
tree09c3e794edb6d39b306cac0fd9a903f1f56efe84
parentd70276675c27fde7ac40da9d59d1b49c7a0be851 (diff)
downloadgcc-9524f769a795d7ad5b9a1d5266d372ef3f466f4c.zip
gcc-9524f769a795d7ad5b9a1d5266d372ef3f466f4c.tar.gz
gcc-9524f769a795d7ad5b9a1d5266d372ef3f466f4c.tar.bz2
combine.c (try_combine): Use NULL_RTX instead of '0' where appropriate in calls to gen_rtx().
* combine.c (try_combine): Use NULL_RTX instead of '0' where appropriate in calls to gen_rtx(). * cse.c (cse_main): Likewise. * emit-rtl.c (gen_label_rtx): Likewise. * expr.c (init_expr_once): Likewise. * haifa-sched.c (flush_pending_lists, sched_analyze_insn, sched_analyze, init_rgn_data_dependences, compute_block_backward_dependences): Likewise. * sched.c (schedule_insns): Likewise. * varasm.c (immed_double_const): Likewise. From-SVN: r15630
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/combine.c4
-rw-r--r--gcc/cse.c2
-rw-r--r--gcc/emit-rtl.c3
-rw-r--r--gcc/expr.c2
-rw-r--r--gcc/haifa-sched.c12
-rw-r--r--gcc/sched.c2
-rw-r--r--gcc/varasm.c2
8 files changed, 25 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a26d57c..e421b20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,16 @@
Mon Sep 22 11:36:42 1997 David S. Miller <davem@tanya.rutgers.edu>
+ * combine.c (try_combine): Use NULL_RTX instead of '0' where
+ appropriate in calls to gen_rtx().
+ * cse.c (cse_main): Likewise.
+ * emit-rtl.c (gen_label_rtx): Likewise.
+ * expr.c (init_expr_once): Likewise.
+ * haifa-sched.c (flush_pending_lists, sched_analyze_insn,
+ sched_analyze, init_rgn_data_dependences,
+ compute_block_backward_dependences): Likewise.
+ * sched.c (schedule_insns): Likewise.
+ * varasm.c (immed_double_const): Likewise.
+
* sparc.h (INCOMING_FRAME_SP_OFFSET): Define to
SPARC_STACK_BIAS for sake of dwarf2 on sparc64.
diff --git a/gcc/combine.c b/gcc/combine.c
index 7ce64e4..2ef88c0 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1401,8 +1401,8 @@ try_combine (i3, i2, i1)
as I2 will not cause a problem. */
subst_prev_insn = i1
- = gen_rtx (INSN, VOIDmode, INSN_UID (i2), 0, i2,
- XVECEXP (PATTERN (i2), 0, 1), -1, 0, 0);
+ = gen_rtx (INSN, VOIDmode, INSN_UID (i2), NULL_RTX, i2,
+ XVECEXP (PATTERN (i2), 0, 1), -1, NULL_RTX, NULL_RTX);
SUBST (PATTERN (i2), XVECEXP (PATTERN (i2), 0, 0));
SUBST (XEXP (SET_SRC (PATTERN (i2)), 0),
diff --git a/gcc/cse.c b/gcc/cse.c
index e35a814..a8c6090 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -8200,7 +8200,7 @@ cse_main (f, nregs, after_loop, file)
/* Allocate scratch rtl here. cse_insn will fill in the memory reference
and change the code and mode as appropriate. */
- memory_extend_rtx = gen_rtx (ZERO_EXTEND, VOIDmode, 0);
+ memory_extend_rtx = gen_rtx (ZERO_EXTEND, VOIDmode, NULL_RTX);
#endif
/* Discard all the free elements of the previous function
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 234b6f5..50c6597 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1444,7 +1444,8 @@ gen_label_rtx ()
label = (output_bytecode
? gen_rtx (CODE_LABEL, VOIDmode, NULL, bc_get_bytecode_label ())
- : gen_rtx (CODE_LABEL, VOIDmode, 0, 0, 0, label_num++, NULL_PTR));
+ : gen_rtx (CODE_LABEL, VOIDmode, 0, NULL_RTX,
+ NULL_RTX, label_num++, NULL_PTR));
LABEL_NUSES (label) = 0;
return label;
diff --git a/gcc/expr.c b/gcc/expr.c
index dd0050d..4ed0b39 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -292,7 +292,7 @@ init_expr_once ()
rtx mem1 = gen_rtx (MEM, VOIDmode, frame_pointer_rtx);
start_sequence ();
- insn = emit_insn (gen_rtx (SET, 0, 0));
+ insn = emit_insn (gen_rtx (SET, 0, NULL_RTX, NULL_RTX));
pat = PATTERN (insn);
for (mode = VOIDmode; (int) mode < NUM_MACHINE_MODES;
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index d80d850..38e2892 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3362,7 +3362,7 @@ flush_pending_lists (insn, only_write)
add_dependence (insn, XEXP (u, 0), REG_DEP_ANTI);
last_pending_memory_flush =
- gen_rtx (INSN_LIST, VOIDmode, insn, 0);
+ gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
}
/* Analyze a single SET or CLOBBER rtx, X, creating all dependencies generated
@@ -3830,7 +3830,7 @@ sched_analyze_insn (x, insn, loop_notes)
{
/* reg_last_sets[r] is now a list of insns */
reg_last_sets[i]
- = gen_rtx (INSN_LIST, VOIDmode, insn, 0);
+ = gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
});
CLEAR_REG_SET (reg_pending_sets);
@@ -3840,7 +3840,7 @@ sched_analyze_insn (x, insn, loop_notes)
/* reg_last_sets[r] is now a list of insns */
reg_last_sets[i]
- = gen_rtx (INSN_LIST, VOIDmode, insn, 0);
+ = gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
reg_pending_sets_all = 0;
}
@@ -3988,7 +3988,7 @@ sched_analyze (head, tail)
/* last_function_call is now a list of insns */
last_function_call
- = gen_rtx (INSN_LIST, VOIDmode, insn, 0);
+ = gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
}
/* See comments on reemit_notes as to why we do this. */
@@ -7060,7 +7060,7 @@ init_rgn_data_dependences (n_bbs)
{
bb_sched_before_next_call[bb] =
gen_rtx (INSN, VOIDmode, 0, NULL_RTX, NULL_RTX,
- NULL_RTX, 0, NULL_RTX, 0);
+ NULL_RTX, 0, NULL_RTX, NULL_RTX);
LOG_LINKS (bb_sched_before_next_call[bb]) = 0;
}
}
@@ -7191,7 +7191,7 @@ compute_block_backward_dependences (bb)
last_pending_memory_flush = 0;
sched_before_next_call
= gen_rtx (INSN, VOIDmode, 0, NULL_RTX, NULL_RTX,
- NULL_RTX, 0, NULL_RTX, 0);
+ NULL_RTX, 0, NULL_RTX, NULL_RTX);
LOG_LINKS (sched_before_next_call) = 0;
}
else
diff --git a/gcc/sched.c b/gcc/sched.c
index 1db9005..b815324 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -4238,7 +4238,7 @@ schedule_insns (dump_file)
/* Create an insn here so that we can hang dependencies off of it later. */
sched_before_next_call
= gen_rtx (INSN, VOIDmode, 0, NULL_RTX, NULL_RTX,
- NULL_RTX, 0, NULL_RTX, 0);
+ NULL_RTX, 0, NULL_RTX, NULL_RTX);
/* Initialize the unused_*_lists. We can't use the ones left over from
the previous function, because gcc has freed that memory. We can use
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 351524d..3210aa2 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -2192,7 +2192,7 @@ immed_double_const (i0, i1, mode)
push_obstacks_nochange ();
rtl_in_saveable_obstack ();
- r = gen_rtx (CONST_DOUBLE, mode, 0, i0, i1);
+ r = gen_rtx (CONST_DOUBLE, mode, NULL_RTX, i0, i1);
pop_obstacks ();
/* Don't touch const_double_chain in nested function; see force_const_mem.