diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 12:11:35 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 12:11:35 +0000 |
commit | d946ea19691c3dbff945842d584b6a94c5190d92 (patch) | |
tree | 8291109d2b67c4e545af01d31c07d304a1aa6fc8 /gcc/reload.c | |
parent | 009683b3add393296a992f44e7078b0e3e3e6246 (diff) | |
download | gcc-d946ea19691c3dbff945842d584b6a94c5190d92.tar.gz |
* bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".
* c-common.c: Likewise.
* c-decl.c: Likewise.
* combine.c: Likewise.
* rs6000.c: Likewise.
* except.c: Likewise.
* explow.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* function.c: Likewise.
* gcc.c: Likewise.
* gcse.c: Likewise.
* integrate.c: Likewise.
* loop.c: Likewise.
* objc/objc-act.c: Likewise.
* recog.c: Likewise.
* reg-stack.c: Likewise.
* reload.c: Likewise.
* reload1.c: Likewise.
* simplify-rtx.c: Likewise.
* stmt.c: Likewise.
* varasm.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41722 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 2244e0d8ec4..96c073dcd2f 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -634,7 +634,7 @@ get_secondary_mem (x, mode, opnum, type) : type == RELOAD_FOR_OUTPUT ? RELOAD_FOR_OUTPUT_ADDRESS : RELOAD_OTHER); - find_reloads_address (mode, NULL_PTR, XEXP (loc, 0), &XEXP (loc, 0), + find_reloads_address (mode, (rtx*)0, XEXP (loc, 0), &XEXP (loc, 0), opnum, type, 0, 0); } @@ -1035,7 +1035,7 @@ push_reload (in, out, inloc, outloc, class, order as the reloads. Thus if the outer reload is also of type RELOAD_OTHER, we are guaranteed that this inner reload will be output before the outer reload. */ - push_reload (SUBREG_REG (in), NULL_RTX, &SUBREG_REG (in), NULL_PTR, + push_reload (SUBREG_REG (in), NULL_RTX, &SUBREG_REG (in), (rtx*)0, find_valid_class (inmode, subreg_regno_offset (REGNO (SUBREG_REG (in)), GET_MODE (SUBREG_REG (in)), @@ -1908,7 +1908,7 @@ find_dummy_reload (real_in, real_out, inloc, outloc, unsigned int regno = REGNO (in) + in_offset; unsigned int nwords = HARD_REGNO_NREGS (regno, inmode); - if (! refers_to_regno_for_reload_p (regno, regno + nwords, out, NULL_PTR) + if (! refers_to_regno_for_reload_p (regno, regno + nwords, out, (rtx*)0) && ! hard_reg_set_here_p (regno, regno + nwords, PATTERN (this_insn)) && (! earlyclobber @@ -2327,7 +2327,7 @@ immune_p (x, y, ydata) struct decomposition xdata; if (ydata.reg_flag) - return !refers_to_regno_for_reload_p (ydata.start, ydata.end, x, NULL_PTR); + return !refers_to_regno_for_reload_p (ydata.start, ydata.end, x, (rtx*)0); if (ydata.safe) return 1; @@ -2605,7 +2605,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ; else if (constraints[i][0] == 'p') { - find_reloads_address (VOIDmode, NULL_PTR, + find_reloads_address (VOIDmode, (rtx*)0, recog_data.operand[i], recog_data.operand_loc[i], i, operand_type[i], ind_levels, insn); @@ -3655,7 +3655,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) { operand_reloadnum[i] = push_reload (XEXP (recog_data.operand[i], 0), NULL_RTX, - &XEXP (recog_data.operand[i], 0), NULL_PTR, + &XEXP (recog_data.operand[i], 0), (rtx*)0, BASE_REG_CLASS, GET_MODE (XEXP (recog_data.operand[i], 0)), VOIDmode, 0, 0, i, RELOAD_FOR_INPUT); @@ -4426,12 +4426,12 @@ find_reloads_toplev (x, opnum, type, ind_levels, is_set_dest, insn, calculate the register number as : SUBREG_BYTE (x) / GET_MODE_SIZE (subreg_mode) */ if (is_set_dest) - push_reload (NULL_RTX, SUBREG_REG (x), NULL_PTR, &SUBREG_REG (x), + push_reload (NULL_RTX, SUBREG_REG (x), (rtx*)0, &SUBREG_REG (x), find_valid_class (subreg_mode, SUBREG_BYTE (x) / GET_MODE_SIZE (subreg_mode)), VOIDmode, subreg_mode, 0, 0, opnum, type); else - push_reload (SUBREG_REG (x), NULL_RTX, &SUBREG_REG (x), NULL_PTR, + push_reload (SUBREG_REG (x), NULL_RTX, &SUBREG_REG (x), (rtx*)0, find_valid_class (subreg_mode, SUBREG_BYTE (x) / GET_MODE_SIZE (subreg_mode)), subreg_mode, VOIDmode, 0, 0, opnum, type); @@ -4549,7 +4549,7 @@ find_reloads_address (mode, memrefloc, ad, loc, opnum, type, ind_levels, insn) tem = make_memloc (ad, regno); if (! strict_memory_address_p (GET_MODE (tem), XEXP (tem, 0))) { - find_reloads_address (GET_MODE (tem), NULL_PTR, XEXP (tem, 0), + find_reloads_address (GET_MODE (tem), (rtx*)0, XEXP (tem, 0), &XEXP (tem, 0), opnum, ADDR_TYPE (type), ind_levels, insn); } @@ -4593,7 +4593,7 @@ find_reloads_address (mode, memrefloc, ad, loc, opnum, type, ind_levels, insn) return 0; /* If we do not have one of the cases above, we must do the reload. */ - push_reload (ad, NULL_RTX, loc, NULL_PTR, BASE_REG_CLASS, + push_reload (ad, NULL_RTX, loc, (rtx*)0, BASE_REG_CLASS, GET_MODE (ad), VOIDmode, 0, 0, opnum, type); return 1; } @@ -4693,7 +4693,7 @@ find_reloads_address (mode, memrefloc, ad, loc, opnum, type, ind_levels, insn) { /* Must use TEM here, not AD, since it is the one that will have any subexpressions reloaded, if needed. */ - push_reload (tem, NULL_RTX, loc, NULL_PTR, + push_reload (tem, NULL_RTX, loc, (rtx*)0, BASE_REG_CLASS, GET_MODE (tem), VOIDmode, 0, 0, opnum, type); @@ -5400,7 +5400,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) else { reloadnum - = push_reload (x, NULL_RTX, loc, NULL_PTR, + = push_reload (x, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), GET_MODE (x), 0, 0, opnum, type); @@ -5440,7 +5440,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) XEXP (XEXP (x, 0), 0), &XEXP (XEXP (x, 0), 0), opnum, type, ind_levels, insn); - reloadnum = push_reload (x, NULL_RTX, loc, NULL_PTR, + reloadnum = push_reload (x, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); rld[reloadnum].inc @@ -5469,7 +5469,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) find_reloads_address (GET_MODE (x), loc, XEXP (x, 0), &XEXP (x, 0), opnum, ADDR_TYPE (type), ind_levels, insn); - push_reload (*loc, NULL_RTX, loc, NULL_PTR, + push_reload (*loc, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; @@ -5490,7 +5490,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) that feeds this insn. */ if (reg_equiv_mem[regno] != 0) { - push_reload (reg_equiv_mem[regno], NULL_RTX, loc, NULL_PTR, + push_reload (reg_equiv_mem[regno], NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; @@ -5518,7 +5518,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) || !(context ? REGNO_OK_FOR_INDEX_P (regno) : REGNO_MODE_OK_FOR_BASE_P (regno, mode)))) { - push_reload (x, NULL_RTX, loc, NULL_PTR, + push_reload (x, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; @@ -5530,7 +5530,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) from before this insn to after it. */ if (regno_clobbered_p (regno, this_insn, GET_MODE (x), 0)) { - push_reload (x, NULL_RTX, loc, NULL_PTR, + push_reload (x, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; @@ -5551,7 +5551,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) if (! (context ? REGNO_OK_FOR_INDEX_P (regno) : REGNO_MODE_OK_FOR_BASE_P (regno, mode))) { - push_reload (x, NULL_RTX, loc, NULL_PTR, + push_reload (x, NULL_RTX, loc, (rtx*)0, (context ? INDEX_REG_CLASS : BASE_REG_CLASS), GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; @@ -5568,7 +5568,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) { x = find_reloads_subreg_address (x, 0, opnum, type, ind_levels, insn); - push_reload (x, NULL_RTX, loc, NULL_PTR, class, + push_reload (x, NULL_RTX, loc, (rtx*)0, class, GET_MODE (x), VOIDmode, 0, 0, opnum, type); return 1; } @@ -5644,7 +5644,7 @@ find_reloads_address_part (x, loc, class, mode, opnum, type, ind_levels) opnum, type, ind_levels, 0); } - push_reload (x, NULL_RTX, loc, NULL_PTR, class, + push_reload (x, NULL_RTX, loc, (rtx*)0, class, mode, VOIDmode, 0, 0, opnum, type); } @@ -5977,7 +5977,7 @@ refers_to_regno_for_reload_p (regno, endregno, x, loc) if (reg_equiv_memory_loc[r]) return refers_to_regno_for_reload_p (regno, endregno, reg_equiv_memory_loc[r], - NULL_PTR); + (rtx*)0); if (reg_equiv_constant[r]) return 0; @@ -6123,7 +6123,7 @@ reg_overlap_mentioned_for_reload_p (x, in) endregno = regno + (regno < FIRST_PSEUDO_REGISTER ? HARD_REGNO_NREGS (regno, GET_MODE (x)) : 1); - return refers_to_regno_for_reload_p (regno, endregno, in, NULL_PTR); + return refers_to_regno_for_reload_p (regno, endregno, in, (rtx*)0); } /* Return nonzero if anything in X contains a MEM. Look also for pseudo @@ -6378,7 +6378,7 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode) && refers_to_regno_for_reload_p (valueno, (valueno + HARD_REGNO_NREGS (valueno, mode)), - goal, NULL_PTR)) + goal, (rtx*)0)) return 0; /* Reject registers that overlap GOAL. */ |