Commit 4381f7c2 by Kazu Hirata Committed by Jeff Law

reload.c: Fix formatting.


        * reload.c: Fix formatting.

        * stmt.c: Fix formatting.

From-SVN: r36051
parent 9218435e
2000-08-29 Kazu Hirata <kazu@hxi.com> 2000-08-29 Kazu Hirata <kazu@hxi.com>
* reload.c: Fix formatting.
* stmt.c: Fix formatting.
* gcc.c: Fix formatting. * gcc.c: Fix formatting.
2000-08-29 Zack Weinberg <zack@wolery.cumb.org> 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
......
...@@ -19,7 +19,6 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,7 +19,6 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* This file contains subroutines used only from the file reload1.c. /* This file contains subroutines used only from the file reload1.c.
It knows how to scan one insn for operands and values It knows how to scan one insn for operands and values
that need to be copied into registers to make valid code. that need to be copied into registers to make valid code.
...@@ -71,7 +70,6 @@ NOTE SIDE EFFECTS: ...@@ -71,7 +70,6 @@ NOTE SIDE EFFECTS:
2 happens only when REPLACE is 1, which is only when 2 happens only when REPLACE is 1, which is only when
actually doing the reloads, not when just counting them. actually doing the reloads, not when just counting them.
Using a reload register for several reloads in one insn: Using a reload register for several reloads in one insn:
When an insn has reloads, it is considered as having three parts: When an insn has reloads, it is considered as having three parts:
...@@ -2173,7 +2171,7 @@ decompose (x) ...@@ -2173,7 +2171,7 @@ decompose (x)
|| GET_CODE (addr) == POST_DEC || GET_CODE (addr) == POST_INC) || GET_CODE (addr) == POST_DEC || GET_CODE (addr) == POST_INC)
{ {
val.base = XEXP (addr, 0); val.base = XEXP (addr, 0);
val.start = - GET_MODE_SIZE (GET_MODE (x)); val.start = -GET_MODE_SIZE (GET_MODE (x));
val.end = GET_MODE_SIZE (GET_MODE (x)); val.end = GET_MODE_SIZE (GET_MODE (x));
val.safe = REGNO (val.base) == STACK_POINTER_REGNUM; val.safe = REGNO (val.base) == STACK_POINTER_REGNUM;
return val; return val;
...@@ -2333,7 +2331,6 @@ immune_p (x, y, ydata) ...@@ -2333,7 +2331,6 @@ immune_p (x, y, ydata)
return 0; return 0;
} }
return (xdata.start >= ydata.end || ydata.start >= xdata.end); return (xdata.start >= ydata.end || ydata.start >= xdata.end);
} }
...@@ -2878,7 +2875,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -2878,7 +2875,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
case '#': case '#':
/* Ignore rest of this alternative as far as /* Ignore rest of this alternative as far as
reloading is concerned. */ reloading is concerned. */
while (*p && *p != ',') p++; while (*p && *p != ',')
p++;
break; break;
case '0': case '1': case '2': case '3': case '4': case '0': case '1': case '2': case '3': case '4':
...@@ -2902,9 +2900,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -2902,9 +2900,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
only on one side of its diagonal. */ only on one side of its diagonal. */
? (operands_match ? (operands_match
[(c == commutative || c == commutative + 1) [(c == commutative || c == commutative + 1)
? 2*commutative + 1 - c : c] ? 2 * commutative + 1 - c : c]
[(i == commutative || i == commutative + 1) [(i == commutative || i == commutative + 1)
? 2*commutative + 1 - i : i]) ? 2 * commutative + 1 - i : i])
: operands_match[c][i]) : operands_match[c][i])
{ {
/* If we are matching a non-offsettable address where an /* If we are matching a non-offsettable address where an
...@@ -3233,7 +3231,6 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3233,7 +3231,6 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
&& ! const_to_mem) && ! const_to_mem)
bad = 1; bad = 1;
/* We prefer to reload pseudos over reloading other things, /* We prefer to reload pseudos over reloading other things,
since such reloads may be able to be eliminated later. since such reloads may be able to be eliminated later.
If we are reloading a SCRATCH, we won't be generating any If we are reloading a SCRATCH, we won't be generating any
...@@ -3276,7 +3273,6 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3276,7 +3273,6 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
Don't do this if the preferred class has only one register Don't do this if the preferred class has only one register
because we might otherwise exhaust the class. */ because we might otherwise exhaust the class. */
if (! win && this_alternative[i] != (int) NO_REGS if (! win && this_alternative[i] != (int) NO_REGS
&& GET_MODE_SIZE (operand_mode[i]) <= UNITS_PER_WORD && GET_MODE_SIZE (operand_mode[i]) <= UNITS_PER_WORD
&& reg_class_size[(int) preferred_class[i]] > 1) && reg_class_size[(int) preferred_class[i]] > 1)
...@@ -3511,7 +3507,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3511,7 +3507,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
tem = *recog_data.operand_loc[commutative]; tem = *recog_data.operand_loc[commutative];
*recog_data.operand_loc[commutative] *recog_data.operand_loc[commutative]
= *recog_data.operand_loc[commutative + 1]; = *recog_data.operand_loc[commutative + 1];
*recog_data.operand_loc[commutative+1] = tem; *recog_data.operand_loc[commutative + 1] = tem;
for (i = 0; i < n_reloads; i++) for (i = 0; i < n_reloads; i++)
{ {
...@@ -3947,8 +3943,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3947,8 +3943,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
{ {
int secondary_in_reload = rld[i].secondary_in_reload; int secondary_in_reload = rld[i].secondary_in_reload;
rld[secondary_in_reload].when_needed rld[secondary_in_reload].when_needed = RELOAD_FOR_OPADDR_ADDR;
= RELOAD_FOR_OPADDR_ADDR;
/* If there's a tertiary reload we have to change it also. */ /* If there's a tertiary reload we have to change it also. */
if (secondary_in_reload > 0 if (secondary_in_reload > 0
...@@ -3963,8 +3958,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3963,8 +3958,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
{ {
int secondary_out_reload = rld[i].secondary_out_reload; int secondary_out_reload = rld[i].secondary_out_reload;
rld[secondary_out_reload].when_needed rld[secondary_out_reload].when_needed = RELOAD_FOR_OPADDR_ADDR;
= RELOAD_FOR_OPADDR_ADDR;
/* If there's a tertiary reload we have to change it also. */ /* If there's a tertiary reload we have to change it also. */
if (secondary_out_reload if (secondary_out_reload
...@@ -4018,7 +4012,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -4018,7 +4012,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
int first_op_addr_num = -2; int first_op_addr_num = -2;
int first_inpaddr_num[MAX_RECOG_OPERANDS]; int first_inpaddr_num[MAX_RECOG_OPERANDS];
int first_outpaddr_num[MAX_RECOG_OPERANDS]; int first_outpaddr_num[MAX_RECOG_OPERANDS];
int need_change= 0; int need_change = 0;
/* We use last_op_addr_reload and the contents of the above arrays /* We use last_op_addr_reload and the contents of the above arrays
first as flags - -2 means no instance encountered, -1 means exactly first as flags - -2 means no instance encountered, -1 means exactly
one instance encountered. one instance encountered.
...@@ -5131,7 +5125,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) ...@@ -5131,7 +5125,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn)
of another register or by a constant value. Thus, these of another register or by a constant value. Thus, these
operands must match. */ operands must match. */
if (op0 != XEXP (op1, 0)) if (op0 != XEXP (op1, 0))
abort(); abort ();
/* Require index register (or constant). Let's just handle the /* Require index register (or constant). Let's just handle the
register case in the meantime... If the target allows register case in the meantime... If the target allows
...@@ -5193,7 +5187,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) ...@@ -5193,7 +5187,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn)
} }
} }
else else
abort(); abort ();
} }
return 0; return 0;
...@@ -5928,7 +5922,7 @@ refers_to_regno_for_reload_p (regno, endregno, x, loc) ...@@ -5928,7 +5922,7 @@ refers_to_regno_for_reload_p (regno, endregno, x, loc)
else if (fmt[i] == 'E') else if (fmt[i] == 'E')
{ {
register int j; register int j;
for (j = XVECLEN (x, i) - 1; j >=0; j--) for (j = XVECLEN (x, i) - 1; j >= 0; j--)
if (loc != &XVECEXP (x, i, j) if (loc != &XVECEXP (x, i, j)
&& refers_to_regno_for_reload_p (regno, endregno, && refers_to_regno_for_reload_p (regno, endregno,
XVECEXP (x, i, j), loc)) XVECEXP (x, i, j), loc))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment