r251799 - in /trunk/gcc: ChangeLog common/confi...

rearnsha@gcc.gnu.org rearnsha@gcc.gnu.org
Wed Sep 6 13:42:00 GMT 2017


Author: rearnsha
Date: Wed Sep  6 13:42:46 2017
New Revision: 251799

URL: https://gcc.gnu.org/viewcvs?rev=251799&root=gcc&view=rev
Log:
[arm] auto-generate arm-isa.h from CPU descriptions

This patch autogenerates arm-isa.h from new entries in arm-cpus.in.
This has the primary advantage that it makes the description file more
self-contained, but it also solves the 'array dimensioning' problem
that Tamar recently encountered.  It adds two new constructs to
arm-cpus.in: features and fgroups.  Fgroups are simply a way of naming
a group of feature bits so that they can be referenced together.  We
follow the convention that feature bits are all lower case, while
fgroups are (predominantly) upper case.  This is helpful as in some
contexts they share the same namespace.  Most of the minor changes in
this patch are related to adopting this new naming convention.

	* config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
	* config/arm/arm-isa.h: Delete.  Move definitions to ...
	* arm-cpus.in: ... here.  Use new feature and fgroup values.
	* config/arm/arm.c (arm_option_override): Use lower case for feature
	bit names.
	* config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
	(TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
	* config/arm/parsecpu.awk (END): Add new command 'isa'.
	(isa_pfx): Delete.
	(print_isa_bits_for): New function.
	(gen_isa): New function.
	(gen_comm_data): Use print_isa_bits_for.
	(define feature): New keyword.
	(define fgroup): New keyword.
	* config/arm/t-arm (OPTIONS_H_EXTRA): Add arm-isa.h
	(arm-isa.h): Add rule to generate file.
	* common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
	case for feature bit names.

Removed:
    trunk/gcc/config/arm/arm-isa.h
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/common/config/arm/arm-common.c
    trunk/gcc/config.gcc
    trunk/gcc/config/arm/arm-cpus.in
    trunk/gcc/config/arm/arm.c
    trunk/gcc/config/arm/arm.h
    trunk/gcc/config/arm/parsecpu.awk
    trunk/gcc/config/arm/t-arm



More information about the Gcc-cvs mailing list