diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2016-12-12 09:39:51 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2016-12-12 09:39:51 +0000 |
commit | 6e4e50f5cbb8f96a2654ef2e39075b0e0261faf2 (patch) | |
tree | e3ad0f71840abd7f4f4af7427a3efb158e202e8e /gcc/common | |
parent | 5c2ee2f1fe77697b7af9740f1d89c43a7c257bc5 (diff) | |
download | gcc-6e4e50f5cbb8f96a2654ef2e39075b0e0261faf2.zip gcc-6e4e50f5cbb8f96a2654ef2e39075b0e0261faf2.tar.gz gcc-6e4e50f5cbb8f96a2654ef2e39075b0e0261faf2.tar.bz2 |
Define arm_arch_core_flags in a single file
2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
gcc/
* config/arm/arm-opts.h: Move struct arm_arch_core_flag and
arm_arch_core_flags to ...
* common/config/arm/arm-common.c: There.
From-SVN: r243541
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/arm/arm-common.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c index 473417a..c0de5d2 100644 --- a/gcc/common/config/arm/arm-common.c +++ b/gcc/common/config/arm/arm-common.c @@ -98,6 +98,26 @@ arm_rewrite_mcpu (int argc, const char **argv) return arm_rewrite_selected_cpu (argv[argc - 1]); } +struct arm_arch_core_flag +{ + const char *const name; + const arm_feature_set flags; +}; + +static const struct arm_arch_core_flag arm_arch_core_flags[] = +{ +#undef ARM_CORE +#define ARM_CORE(NAME, X, IDENT, ARCH, FLAGS, COSTS) \ + {NAME, FLAGS}, +#include "config/arm/arm-cores.def" +#undef ARM_CORE +#undef ARM_ARCH +#define ARM_ARCH(NAME, CORE, ARCH, FLAGS) \ + {NAME, FLAGS}, +#include "config/arm/arm-arches.def" +#undef ARM_ARCH +}; + /* Called by the driver to check whether the target denoted by current command line options is a Thumb-only target. ARGV is an array of -march and -mcpu values (ie. it contains the rhs after the equal |