aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2003-10-30 01:40:48 +0000
committerJim Wilson <wilson@gcc.gnu.org>2003-10-29 17:40:48 -0800
commit3b6c3bb05d6fdc2048a2bcadde2a1ff63be8d7eb (patch)
treec85ad91a8707ad90462a57b45f9304237ec4d72f /gcc/reload.c
parenta126dc3a79761cf5f38bdb84cae67e6c47420105 (diff)
downloadgcc-3b6c3bb05d6fdc2048a2bcadde2a1ff63be8d7eb.zip
gcc-3b6c3bb05d6fdc2048a2bcadde2a1ff63be8d7eb.tar.gz
gcc-3b6c3bb05d6fdc2048a2bcadde2a1ff63be8d7eb.tar.bz2
Fix problem noticed by Dale Johannesen on the gcc list.
* recog.c (asm_operand_ok): Add missing break after case 'X'. Change if statements to else if statements in default case. (extract_constrain_insn_cached): Fix misspelling of constrain_operands in comment. (constrain_operands_cached): Likewise. (constrain_operands): Change if statements to else if statements in default case. * reload.c (find_reloads): Likewise. From-SVN: r73074
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 59852ba..06bb3fb 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -3264,17 +3264,18 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known,
win = 1;
/* If the address was already reloaded,
we win as well. */
- if (GET_CODE (operand) == MEM && address_reloaded[i])
+ else if (GET_CODE (operand) == MEM
+ && address_reloaded[i])
win = 1;
/* Likewise if the address will be reloaded because
reg_equiv_address is nonzero. For reg_equiv_mem
we have to check. */
- if (GET_CODE (operand) == REG
- && REGNO (operand) >= FIRST_PSEUDO_REGISTER
- && reg_renumber[REGNO (operand)] < 0
- && ((reg_equiv_mem[REGNO (operand)] != 0
- && EXTRA_CONSTRAINT_STR (reg_equiv_mem[REGNO (operand)], c, p))
- || (reg_equiv_address[REGNO (operand)] != 0)))
+ else if (GET_CODE (operand) == REG
+ && REGNO (operand) >= FIRST_PSEUDO_REGISTER
+ && reg_renumber[REGNO (operand)] < 0
+ && ((reg_equiv_mem[REGNO (operand)] != 0
+ && EXTRA_CONSTRAINT_STR (reg_equiv_mem[REGNO (operand)], c, p))
+ || (reg_equiv_address[REGNO (operand)] != 0)))
win = 1;
/* If we didn't already win, we can reload