aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorKyrylo Tkachov <ktkachov@nvidia.com>2024-07-16 16:59:42 +0530
committerKyrylo Tkachov <ktkachov@nvidia.com>2024-07-18 12:04:07 +0530
commita2cb656c0d1f0b493219025208fa8ed5c7abd2cb (patch)
treed3fa6e7767ee37f1b9194dcc6dc9d41eeddb02a8 /gcc/doc
parent228972b2b7bf50f4776f8ccae0d7c2950827d0f1 (diff)
downloadgcc-a2cb656c0d1f0b493219025208fa8ed5c7abd2cb.zip
gcc-a2cb656c0d1f0b493219025208fa8ed5c7abd2cb.tar.gz
gcc-a2cb656c0d1f0b493219025208fa8ed5c7abd2cb.tar.bz2
[aarch64] Document rewriting of -march=native to -mcpu=native
Commit dd9e5f4db2debf1429feab7f785962ccef6e0dbd changed -march=native to treat it as -mcpu=native if no other mcpu or mtune option was given. It would make sense to document this, especially if we try to persuade compilers like LLVM to take the same approach. This patch documents that behaviour. Bootstrapped and tested on aarch64-none-linux-gnu. Signed-off-by: Kyrylo Tkachov <ktkachov@nvidia.com> gcc/ChangeLog: * doc/invoke.texi (AArch64 Options): Document rewriting of -march=native to -mcpu=native.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 403ea9d..f052128 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -21498,7 +21498,10 @@ and the features that they enable by default:
The value @samp{native} is available on native AArch64 GNU/Linux and
causes the compiler to pick the architecture of the host system. This
option has no effect if the compiler is unable to recognize the
-architecture of the host system,
+architecture of the host system. When @option{-march=native} is given and
+no other @option{-mcpu} or @option{-mtune} is given then GCC will pick
+the host CPU as the CPU to tune for as well as select the architecture features
+from. That is, @option{-march=native} is treated as @option{-mcpu=native}.
The permissible values for @var{feature} are listed in the sub-section
on @ref{aarch64-feature-modifiers,,@option{-march} and @option{-mcpu}