diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2024-02-20 07:45:38 -0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2024-02-23 12:26:47 +0800 |
commit | 1c5da882bf77400748aeb0b01bf9a7faba1a4f32 (patch) | |
tree | 0a372bfbeb77c0589aea9267e2a152a4697317e6 | |
parent | 33abf74108f37fb7792572e538617fd15c8ade29 (diff) | |
download | gcc-1c5da882bf77400748aeb0b01bf9a7faba1a4f32.zip gcc-1c5da882bf77400748aeb0b01bf9a7faba1a4f32.tar.gz gcc-1c5da882bf77400748aeb0b01bf9a7faba1a4f32.tar.bz2 |
doc: RISC-V: Document that -mcpu doesn't override -march or -mtune
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>
-rw-r--r-- | gcc/doc/invoke.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 58527e1..4f4ca2b 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -30750,6 +30750,8 @@ Permissible values for this option are: @samp{sifive-e20}, @samp{sifive-e21}, @samp{sifive-u54}, @samp{sifive-u74}, @samp{sifive-x280}, @samp{sifive-xp450}, @samp{sifive-x670}. +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 |