aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2018-12-12 17:12:25 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2018-12-12 17:12:25 +0000
commit6881e3c13eb5061d4ca5c01867e3107978da074f (patch)
treeb7f90bc0f590af265cc19dbb4143d4a36b201890
parent8921ccbb04cf3c009d0105af2bd695308918d5dc (diff)
downloadgcc-6881e3c13eb5061d4ca5c01867e3107978da074f.zip
gcc-6881e3c13eb5061d4ca5c01867e3107978da074f.tar.gz
gcc-6881e3c13eb5061d4ca5c01867e3107978da074f.tar.bz2
Add support for SUBTARGET_OVERRIDE_OPTIONS on aarch64
* config/aarch64/aarch64.c (aarch64_override_options): Once arch, cpu and tune were validated, insert SUBTARGET_OVERRIDE_OPTIONS if defined. From-SVN: r267060
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/aarch64/aarch64.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7a9cda1..4bc157d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2018-12-12 Olivier Hainque <hainque@adacore.com>
+ * config/aarch64/aarch64.c (aarch64_override_options): Once arch,
+ cpu and tune were validated, insert SUBTARGET_OVERRIDE_OPTIONS if
+ defined.
+
+2018-12-12 Olivier Hainque <hainque@adacore.com>
+
* config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG) : Redefine as
R9_REGNUM instead of 9.
(PROBE_STACK_SECOND_REG): Redefine as R10_REGNUM instead of 10.
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index e17373f..5f41663 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -11408,6 +11408,10 @@ aarch64_override_options (void)
if (aarch64_tune_string)
valid_tune = aarch64_validate_mtune (aarch64_tune_string, &selected_tune);
+#ifdef SUBTARGET_OVERRIDE_OPTIONS
+ SUBTARGET_OVERRIDE_OPTIONS;
+#endif
+
/* If the user did not specify a processor, choose the default
one for them. This will be the CPU set during configuration using
--with-cpu, otherwise it is "generic". */