diff options
author | Michael Hayes <m.hayes@elec.canterbury.ac.nz> | 1999-12-22 20:47:57 +0000 |
---|---|---|
committer | Michael Hayes <m.hayes@gcc.gnu.org> | 1999-12-22 20:47:57 +0000 |
commit | 933cddd010b91313f948f52754addaa480b3b710 (patch) | |
tree | 6685c8d1f802fe851c1959e10f603614e3c628e4 /gcc | |
parent | e55e18d63994334bedc97aa3c4d17a44b9543322 (diff) | |
download | gcc-933cddd010b91313f948f52754addaa480b3b710.zip gcc-933cddd010b91313f948f52754addaa480b3b710.tar.gz gcc-933cddd010b91313f948f52754addaa480b3b710.tar.bz2 |
c4x.c (c4x_address_cost): Add statement to default case in switch.
* config/c4x/c4x.c (c4x_address_cost): Add statement to default
case in switch.
From-SVN: r31074
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/c4x/c4x.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 271b1c6..db7cdaa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz> + + * config/c4x/c4x.c (c4x_address_cost): Add statement to default + case in switch. + 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0 diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index 1475494..61c6466 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -1652,6 +1652,7 @@ c4x_address_cost (addr) } } default: + break; } return 4; @@ -2133,6 +2134,16 @@ c4x_rptb_nop_p (insn) } +/* The C4x looping instruction needs to be emitted at the top of the + loop. Emitting the true RTL for a looping instruction at the top of + the loop can cause problems with flow analysis. So instead, a dummy + doloop insn is emitted at the end of the loop. This routine checks + for the presence of this doloop insn and then searches back to the + top of the loop, where it inserts the true looping insn (provided + there are no instructions in the loop which would cause problems). + Any additional labels can be emitted at this point. In addition, if + the desired loop count register was not allocated, this routine does + nothing. */ void c4x_rptb_insert (insn) rtx insn; @@ -2436,6 +2447,7 @@ c4x_R_constraint (op) return IS_UINT5_CONST (INTVAL (op1)); } break; + default: break; } @@ -2540,6 +2552,7 @@ c4x_S_constraint (op) return IS_DISP1_CONST (INTVAL (op1)); } break; + default: break; } @@ -2854,6 +2867,7 @@ not_modify_reg (op, mode) case SYMBOL_REF: case LABEL_REF: return 1; + default: break; } @@ -3923,6 +3937,7 @@ c4x_arn_mem_operand (op, mode, regno) return 1; } break; + default: break; } |