[PATCH 16/21] [arm] Eliminate TARGET_FPU_NAME.

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Thu Dec 15 16:07:00 GMT 2016


Rather than assuming a specific fpu name has been selected, we work
out the FPU from the ISA properties.  This is necessary since once we
have default FPUs selected by the processor, there will be no explicit
entry in the table of fpus to refer to.

This also fixes a bug with the code I added recently to permit new
aliases for existing FPU names: the new names cannot be passed to the
assembler since it does not recognize them.  By mapping the ISA
features back to the canonical names we avoid having to teach the
assembler about the new names.

	* arm.h (TARGET_FPU_NAME): Delete.
	* arm.c (arm_identify_fpu_from_isa): New function.
	(arm_declare_function_name): Use it to get the name for the FPU.
---
 gcc/config/arm/arm.c | 26 ++++++++++++++++++++++++--
 gcc/config/arm/arm.h |  1 -
 2 files changed, 24 insertions(+), 3 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-arm-Eliminate-TARGET_FPU_NAME.patch
Type: text/x-patch
Size: 2247 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161215/ab8f9bc2/attachment.bin>


More information about the Gcc-patches mailing list