* [PATCH] doc: RISC-V: Document that -mcpu doesn't override -march or -mtune
@ 2024-02-20 15:45 Palmer Dabbelt
2024-02-23 4:27 ` Kito Cheng
0 siblings, 1 reply; 2+ messages in thread
From: Palmer Dabbelt @ 2024-02-20 15:45 UTC (permalink / raw)
To: gcc-patches; +Cc: Palmer Dabbelt
This came up recently as Edwin was looking through the test suite. A
few of us were talking about this during the patchwork meeting and were
surprised. Looks like this is the desired behavior, so let's at least
document it.
gcc/ChangeLog:
* doc/invoke.texi: Document -mcpu.
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
gcc/doc/invoke.texi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 6ec56493e59..4a4bba9f1cd 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -30670,6 +30670,8 @@ Permissible values for this option are: @samp{sifive-e20}, @samp{sifive-e21},
@samp{sifive-s21}, @samp{sifive-s51}, @samp{sifive-s54}, @samp{sifive-s76},
@samp{sifive-u54}, @samp{sifive-u74}, and @samp{sifive-x280}.
+Note that @option{-mcpu} does not override @option{-march} or @option{-mtune}.
+
@opindex mtune
@item -mtune=@var{processor-string}
Optimize the output for the given processor, specified by microarchitecture or
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] doc: RISC-V: Document that -mcpu doesn't override -march or -mtune
2024-02-20 15:45 [PATCH] doc: RISC-V: Document that -mcpu doesn't override -march or -mtune Palmer Dabbelt
@ 2024-02-23 4:27 ` Kito Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2024-02-23 4:27 UTC (permalink / raw)
To: Palmer Dabbelt; +Cc: gcc-patches
LGTM, and committed :)
On Tue, Feb 20, 2024 at 11:46 PM Palmer Dabbelt <palmer@rivosinc.com> wrote:
>
> This came up recently as Edwin was looking through the test suite. A
> few of us were talking about this during the patchwork meeting and were
> surprised. Looks like this is the desired behavior, so let's at least
> document it.
>
> gcc/ChangeLog:
>
> * doc/invoke.texi: Document -mcpu.
>
> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
> ---
> gcc/doc/invoke.texi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index 6ec56493e59..4a4bba9f1cd 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -30670,6 +30670,8 @@ Permissible values for this option are: @samp{sifive-e20}, @samp{sifive-e21},
> @samp{sifive-s21}, @samp{sifive-s51}, @samp{sifive-s54}, @samp{sifive-s76},
> @samp{sifive-u54}, @samp{sifive-u74}, and @samp{sifive-x280}.
>
> +Note that @option{-mcpu} does not override @option{-march} or @option{-mtune}.
> +
> @opindex mtune
> @item -mtune=@var{processor-string}
> Optimize the output for the given processor, specified by microarchitecture or
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-23 4:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 15:45 [PATCH] doc: RISC-V: Document that -mcpu doesn't override -march or -mtune Palmer Dabbelt
2024-02-23 4:27 ` Kito Cheng
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).