From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id 932813858416; Fri, 23 Feb 2024 04:27:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 932813858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708662427; bh=yUijY0C/1TNztMnfm1hNkczSCTOllfVBcqXd+ZtwTZY=; h=From:To:Subject:Date:From; b=X6UlysZ9elf92Iz9gQjjY7nScRc7JCZwHajd1nBTIJtZkR6Ry0Jy0952DtGw8d2sA kzsptn44QXeo4NcXXS2eV7fxCclK4AuoWR1ythr1EFwI5cbwOW8dDN46Z/lFwxzl2t FzWm7aeU5OwM7jJAsI7ICGuZHhkpWgoSTk/Fa4qw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9143] doc: RISC-V: Document that -mcpu doesn't override -march or -mtune X-Act-Checkin: gcc X-Git-Author: Palmer Dabbelt X-Git-Refname: refs/heads/master X-Git-Oldrev: 33abf74108f37fb7792572e538617fd15c8ade29 X-Git-Newrev: 1c5da882bf77400748aeb0b01bf9a7faba1a4f32 Message-Id: <20240223042707.932813858416@sourceware.org> Date: Fri, 23 Feb 2024 04:27:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:1c5da882bf77400748aeb0b01bf9a7faba1a4f32 commit r14-9143-g1c5da882bf77400748aeb0b01bf9a7faba1a4f32 Author: Palmer Dabbelt Date: Tue Feb 20 07:45:38 2024 -0800 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: --- gcc/doc/invoke.texi | 2 ++ 1 file changed, 2 insertions(+) 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