Hi,
This patch fixes failure of command "arm-none-eabi-gcc -O2 -mthumb
-mtune=cortex-m4 ..." on arm/embedded-4_7-branch by removing the assertion
in arm_cortex_v7m_branch_cost.
Is it OK?
Thanks.
2013-06-06 Bin Cheng <bin.ch...@arm.com>
* config/arm/arm.c (arm_cortex_v7m_branch_cost): Remove assertion
on TARGET_32BIT and TARGET_THUMB2.
Index: gcc/config/arm/arm.c
===================================================================
--- gcc/config/arm/arm.c (revision 199680)
+++ gcc/config/arm/arm.c (working copy)
@@ -8760,8 +8760,6 @@ arm_cortex_a5_branch_cost (bool speed_p, bool pred
static int
arm_cortex_v7m_branch_cost (bool speed_p, bool predictable_p ATTRIBUTE_UNUSED)
{
- gcc_assert (TARGET_32BIT && TARGET_THUMB2);
-
return 1;
}