diff mbox

[AARCH64] Clarify the usage of SCHED in AARCH64_CORE macro

Message ID 547F2C86.2090701@arm.com
State New
Headers show

Commit Message

Renlin Li Dec. 3, 2014, 3:30 p.m. UTC
Hi all,

This is a simple patch to change a few misused IDNET in AARCH64_CORE to 
SCHED to reflect their original intentions.
The third argument of AARCH64_CORE macro is scheduler identity.


No functional change. aarch64-none-elf has been built and checked, no issue.
Okay for trunk?

Regards,
Renlin Li

gcc/ChangeLog:

2014-12-03  Renlin Li  <Renlin.Li@arm.com>

     * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
     * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
     * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT, IDENT 
to SCHED.

Comments

Marcus Shawcroft Dec. 5, 2014, 5:11 p.m. UTC | #1
On 3 December 2014 at 15:30, Renlin Li <renlin.li@arm.com> wrote:

> 2014-12-03  Renlin Li  <Renlin.Li@arm.com>
>
>     * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
>     * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
>     * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT, IDENT to
> SCHED.

OK /Marcus
diff mbox

Patch

diff --git a/gcc/config/aarch64/aarch64-opts.h b/gcc/config/aarch64/aarch64-opts.h
index 3709315..c1fef2b 100644
--- a/gcc/config/aarch64/aarch64-opts.h
+++ b/gcc/config/aarch64/aarch64-opts.h
@@ -25,7 +25,7 @@ 
 /* The various cores that implement AArch64.  */
 enum aarch64_processor
 {
-#define AARCH64_CORE(NAME, INTERNAL_IDENT, IDENT, ARCH, FLAGS, COSTS) \
+#define AARCH64_CORE(NAME, INTERNAL_IDENT, SCHED, ARCH, FLAGS, COSTS) \
   INTERNAL_IDENT,
 #include "aarch64-cores.def"
 #undef AARCH64_CORE
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index ee9a962..4b82899 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -373,8 +373,8 @@  struct processor
 /* Processor cores implementing AArch64.  */
 static const struct processor all_cores[] =
 {
-#define AARCH64_CORE(NAME, X, IDENT, ARCH, FLAGS, COSTS) \
-  {NAME, IDENT, #ARCH, ARCH,\
+#define AARCH64_CORE(NAME, IDENT, SCHED, ARCH, FLAGS, COSTS) \
+  {NAME, SCHED, #ARCH, ARCH,\
     FLAGS | AARCH64_FL_FOR_ARCH##ARCH, &COSTS##_tunings},
 #include "aarch64-cores.def"
 #undef AARCH64_CORE
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index bbe33a9..8ed1f84 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -506,7 +506,7 @@  enum reg_class
 
 enum target_cpus
 {
-#define AARCH64_CORE(NAME, INTERNAL_IDENT, IDENT, ARCH, FLAGS, COSTS) \
+#define AARCH64_CORE(NAME, INTERNAL_IDENT, SCHED, ARCH, FLAGS, COSTS) \
   TARGET_CPU_##INTERNAL_IDENT,
 #include "aarch64-cores.def"
 #undef AARCH64_CORE