* [PATCH] Fix missing info for -march and -mtune wrong values on aarch64 (PR driver/83193).
@ 2018-02-20 12:05 Martin Liška
2018-02-20 12:49 ` Jakub Jelinek
0 siblings, 1 reply; 3+ messages in thread
From: Martin Liška @ 2018-02-20 12:05 UTC (permalink / raw)
To: gcc-patches; +Cc: James Greenhalgh, Richard Earnshaw, Marcus Shawcroft
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
Hi.
This is fix for one of multiple issues seen in the PR. Note that I also have some patches
for the others, but it's not stage4 material in my opinion.
This one is quite obvious and should land in GCC 8.
Output before:
$ ./xgcc -B. -march=sparta /tmp/main.c
cc1: error: unknown value âspartaâ for -march
And after:
$ ./xgcc -B. -march=sparta /tmp/main.c
cc1: error: unknown value âspartaâ for -march
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a;
Ready for trunk?
gcc/ChangeLog:
2018-02-20 Martin Liska <mliska@suse.cz>
PR driver/83193
* config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch): Print
possible values if we don't have a hint.
---
gcc/config/aarch64/aarch64.c | 3 +++
1 file changed, 3 insertions(+)
[-- Attachment #2: 0001-Fix-missing-info-for-march-and-mtune-wrong-values-on.patch --]
[-- Type: text/x-patch, Size: 476 bytes --]
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 228fd1b908d..5fb18c4ca20 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -10633,6 +10633,9 @@ aarch64_print_hint_for_core_or_arch (const char *str, bool arch)
if (hint)
inform (input_location, "valid arguments are: %s;"
" did you mean %qs?", s, hint);
+ else
+ inform (input_location, "valid arguments are: %s;", s);
+
XDELETEVEC (s);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix missing info for -march and -mtune wrong values on aarch64 (PR driver/83193).
2018-02-20 12:49 ` Jakub Jelinek
@ 2018-02-20 12:18 ` Martin Liška
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liška @ 2018-02-20 12:18 UTC (permalink / raw)
To: Jakub Jelinek
Cc: gcc-patches, James Greenhalgh, Richard Earnshaw, Marcus Shawcroft
On 02/20/2018 01:09 PM, Jakub Jelinek wrote:
> On Tue, Feb 20, 2018 at 01:05:33PM +0100, Martin Liška wrote:
>> Hi.
>>
>> This is fix for one of multiple issues seen in the PR. Note that I also have some patches
>> for the others, but it's not stage4 material in my opinion.
>> This one is quite obvious and should land in GCC 8.
>>
>> Output before:
>> $ ./xgcc -B. -march=sparta /tmp/main.c
>> cc1: error: unknown value âspartaâ for -march
>>
>> And after:
>> $ ./xgcc -B. -march=sparta /tmp/main.c
>> cc1: error: unknown value âspartaâ for -march
>> cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a;
>>
>> Ready for trunk?
>>
>> gcc/ChangeLog:
>>
>> 2018-02-20 Martin Liska <mliska@suse.cz>
>>
>> PR driver/83193
>> * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch): Print
>> possible values if we don't have a hint.
>> ---
>> gcc/config/aarch64/aarch64.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>>
>
>> diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
>> index 228fd1b908d..5fb18c4ca20 100644
>> --- a/gcc/config/aarch64/aarch64.c
>> +++ b/gcc/config/aarch64/aarch64.c
>> @@ -10633,6 +10633,9 @@ aarch64_print_hint_for_core_or_arch (const char *str, bool arch)
>> if (hint)
>> inform (input_location, "valid arguments are: %s;"
>> " did you mean %qs?", s, hint);
>> + else
>> + inform (input_location, "valid arguments are: %s;", s);
>
> No trailing ; in this case, that is a separator for did you mean.
Yep!
>
> Otherwise I'd say this is obvious, ok for trunk.
Thanks, just installed.
Martin
>
> Jakub
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix missing info for -march and -mtune wrong values on aarch64 (PR driver/83193).
2018-02-20 12:05 [PATCH] Fix missing info for -march and -mtune wrong values on aarch64 (PR driver/83193) Martin Liška
@ 2018-02-20 12:49 ` Jakub Jelinek
2018-02-20 12:18 ` Martin Liška
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Jelinek @ 2018-02-20 12:49 UTC (permalink / raw)
To: Martin Liška
Cc: gcc-patches, James Greenhalgh, Richard Earnshaw, Marcus Shawcroft
On Tue, Feb 20, 2018 at 01:05:33PM +0100, Martin Liška wrote:
> Hi.
>
> This is fix for one of multiple issues seen in the PR. Note that I also have some patches
> for the others, but it's not stage4 material in my opinion.
> This one is quite obvious and should land in GCC 8.
>
> Output before:
> $ ./xgcc -B. -march=sparta /tmp/main.c
> cc1: error: unknown value âspartaâ for -march
>
> And after:
> $ ./xgcc -B. -march=sparta /tmp/main.c
> cc1: error: unknown value âspartaâ for -march
> cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a;
>
> Ready for trunk?
>
> gcc/ChangeLog:
>
> 2018-02-20 Martin Liska <mliska@suse.cz>
>
> PR driver/83193
> * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch): Print
> possible values if we don't have a hint.
> ---
> gcc/config/aarch64/aarch64.c | 3 +++
> 1 file changed, 3 insertions(+)
>
>
> diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
> index 228fd1b908d..5fb18c4ca20 100644
> --- a/gcc/config/aarch64/aarch64.c
> +++ b/gcc/config/aarch64/aarch64.c
> @@ -10633,6 +10633,9 @@ aarch64_print_hint_for_core_or_arch (const char *str, bool arch)
> if (hint)
> inform (input_location, "valid arguments are: %s;"
> " did you mean %qs?", s, hint);
> + else
> + inform (input_location, "valid arguments are: %s;", s);
No trailing ; in this case, that is a separator for did you mean.
Otherwise I'd say this is obvious, ok for trunk.
Jakub
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-20 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-20 12:05 [PATCH] Fix missing info for -march and -mtune wrong values on aarch64 (PR driver/83193) Martin Liška
2018-02-20 12:49 ` Jakub Jelinek
2018-02-20 12:18 ` Martin Liška
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).