Patchwork [arm/embedded-4_7-branch] fix fialure of mtune option

login
register
mail settings
Submitter Bin Cheng
Date June 6, 2013, 1:43 a.m.
Message ID <009401ce6257$4f498c60$eddca520$@cheng@arm.com>
Download mbox | patch
Permalink /patch/249242/
State New
Headers show

Comments

Bin Cheng - June 6, 2013, 1:43 a.m.
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.cheng@arm.com>

	* config/arm/arm.c (arm_cortex_v7m_branch_cost): Remove assertion
	on TARGET_32BIT and TARGET_THUMB2.

Patch

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;
 }