From: Palmer Dabbelt Date: Tue, 20 Feb 2024 15:45:38 +0000 (-0800) Subject: doc: RISC-V: Document that -mcpu doesn't override -march or -mtune X-Git-Tag: basepoints/gcc-15~996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5da882bf77400748aeb0b01bf9a7faba1a4f32;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 58527e1ea3c5..4f4ca2b76720 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