Commit 0c88d078 by Nick Clifton Committed by Nick Clifton

Fix compile time warning about building the FRV backend by adding missing break…

Fix compile time warning about building the FRV backend by adding missing break statements to the switches in frv_register_move_cost.

	PR target/85978
	* config/frv/frv.c (frv_register_move_cost): Add break statements
	to avoid falling through to the wrong cases.  Tidy code.

From-SVN: r276306
parent 51051f47
2019-09-30 Nick Clifton <nickc@redhat.com>
PR target/85978
* config/frv/frv.c (frv_register_move_cost): Add break statements
to avoid falling through to the wrong cases. Tidy code.
2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
* config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
......
......@@ -6686,7 +6686,6 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case FDPIC_REGS:
case FDPIC_FPTR_REGS:
case FDPIC_CALL_REGS:
switch (to)
{
default:
......@@ -6700,7 +6699,6 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case FDPIC_REGS:
case FDPIC_FPTR_REGS:
case FDPIC_CALL_REGS:
return LOW_COST;
case FPR_REGS:
......@@ -6711,6 +6709,7 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case SPR_REGS:
return LOW_COST;
}
break;
case QUAD_FPR_REGS:
switch (to)
......@@ -6734,6 +6733,7 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case QUAD_FPR_REGS:
return LOW_COST;
}
break;
case LCR_REG:
case LR_REG:
......@@ -6751,9 +6751,9 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case FDPIC_REGS:
case FDPIC_FPTR_REGS:
case FDPIC_CALL_REGS:
return MEDIUM_COST;
}
break;
case QUAD_ACC_REGS:
case ACCG_REGS:
......@@ -6764,8 +6764,8 @@ frv_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED,
case QUAD_FPR_REGS:
return MEDIUM_COST;
}
break;
}
return HIGH_COST;
......
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