public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [ping] allow target (OS) SUBTARGET_OVERRIDE_OPTIONS on aarch64
@ 2018-12-12 15:42 Olivier Hainque
  2018-12-12 16:57 ` James Greenhalgh
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Hainque @ 2018-12-12 15:42 UTC (permalink / raw)
  To: GCC Patches; +Cc: Olivier Hainque

[-- Attachment #1: Type: text/plain, Size: 768 bytes --]

Ping for one of the changes last proposed here:

 https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00761.html

Submitted separately as an attempt to facilitate the review
process.

This one proposes the possibility for target (OS) configurations
to provide a SUBTARGET_OVERRIDE_OPTIONS macro as other CPU ports
do, needed by our aarch64-vxworks7 port to come.

Got access to a linux box, so in addition to the Ada nighty
testing we do on the cross port, bootstrapped and regression
tested on aarch64-linux.

OK to commit ?

Thanks in advance,

With Kind Regards,

Olivier


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.


[-- Attachment #2: 0002-Add-support-for-SUBTARGET_OVERRIDE_OPTIONS-on-aarch6.patch --]
[-- Type: application/octet-stream, Size: 1095 bytes --]

From 4267b4ef20007b5fa71b83c0ab8447771a80856d Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Wed, 12 Dec 2018 06:53:04 -0800
Subject: [PATCH 2/4] 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.
---
 gcc/config/aarch64/aarch64.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 891de75..5e19370 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -11355,6 +11355,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".  */
-- 
1.9.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ping] allow target (OS) SUBTARGET_OVERRIDE_OPTIONS on aarch64
  2018-12-12 15:42 [ping] allow target (OS) SUBTARGET_OVERRIDE_OPTIONS on aarch64 Olivier Hainque
@ 2018-12-12 16:57 ` James Greenhalgh
  2018-12-12 17:13   ` Olivier Hainque
  0 siblings, 1 reply; 3+ messages in thread
From: James Greenhalgh @ 2018-12-12 16:57 UTC (permalink / raw)
  To: Olivier Hainque; +Cc: GCC Patches, nd

On Wed, Dec 12, 2018 at 09:42:05AM -0600, Olivier Hainque wrote:
> Ping for one of the changes last proposed here:
> 
>  https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00761.html
> 
> Submitted separately as an attempt to facilitate the review
> process.
> 
> This one proposes the possibility for target (OS) configurations
> to provide a SUBTARGET_OVERRIDE_OPTIONS macro as other CPU ports
> do, needed by our aarch64-vxworks7 port to come.
> 
> Got access to a linux box, so in addition to the Ada nighty
> testing we do on the cross port, bootstrapped and regression
> tested on aarch64-linux.
> 
> OK to commit ?

OK.

Thanks,
James

> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ping] allow target (OS) SUBTARGET_OVERRIDE_OPTIONS on aarch64
  2018-12-12 16:57 ` James Greenhalgh
@ 2018-12-12 17:13   ` Olivier Hainque
  0 siblings, 0 replies; 3+ messages in thread
From: Olivier Hainque @ 2018-12-12 17:13 UTC (permalink / raw)
  To: James Greenhalgh; +Cc: Olivier Hainque, GCC Patches, nd



> On 12 Dec 2018, at 17:57, James Greenhalgh <james.greenhalgh@arm.com> wrote:

>> This one proposes the possibility for target (OS) configurations
>> to provide a SUBTARGET_OVERRIDE_OPTIONS macro as other CPU ports
>> do, needed by our aarch64-vxworks7 port to come.
> 
> OK.

Great :-) Thanks for your review James !


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-12 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 15:42 [ping] allow target (OS) SUBTARGET_OVERRIDE_OPTIONS on aarch64 Olivier Hainque
2018-12-12 16:57 ` James Greenhalgh
2018-12-12 17:13   ` Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).