Define arm_arch_core_flags in a single file
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 12 Dec 2016 09:39:51 +0000 (09:39 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Mon, 12 Dec 2016 09:39:51 +0000 (09:39 +0000)
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

gcc/ChangeLog
gcc/common/config/arm/arm-common.c
gcc/config/arm/arm-opts.h

index bf789c6..a3cc94e 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
+       arm_arch_core_flags to ...
+       * common/config/arm/arm-common.c: There.
+
 2016-12-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        * config/sparc/constraints.md (T): Use special memory constraint.
index 473417a..c0de5d2 100644 (file)
@@ -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
index 6971534..e06fedb 100644 (file)
@@ -79,24 +79,4 @@ enum arm_tls_type {
   TLS_GNU,
   TLS_GNU2
 };
-
-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 "arm-cores.def"
-#undef ARM_CORE
-#undef ARM_ARCH
-#define ARM_ARCH(NAME, CORE, ARCH, FLAGS) \
-  {NAME, FLAGS},
-#include "arm-arches.def"
-#undef ARM_ARCH
-};
 #endif