aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2018-01-25 18:25:19 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2018-01-25 13:25:19 -0500
commita7b145f340405f6a9e48f76968716fc52f922960 (patch)
treef6d5fb240b73b703313fa70b788f017eb5101ed3
parent96f7c2a94afaa4b09091b96c1bc869db18d2c3ed (diff)
downloadgcc-a7b145f340405f6a9e48f76968716fc52f922960.zip
gcc-a7b145f340405f6a9e48f76968716fc52f922960.tar.gz
gcc-a7b145f340405f6a9e48f76968716fc52f922960.tar.bz2
* doc/invoke.texi (PowerPC Options): Document 'native' cpu type.
From-SVN: r257063
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/doc/invoke.texi8
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cc7e48c..ecbcb260 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-01-25 David Edelsohn <dje.gcc@gmail.com>
+
+ * doc/invoke.texi (PowerPC Options): Document 'native' cpu type.
+
2018-01-25 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/83055
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index f066349..dcc8404 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -22333,7 +22333,7 @@ Supported values for @var{cpu_type} are @samp{401}, @samp{403},
@samp{titan}, @samp{power3}, @samp{power4}, @samp{power5}, @samp{power5+},
@samp{power6}, @samp{power6x}, @samp{power7}, @samp{power8},
@samp{power9}, @samp{powerpc}, @samp{powerpc64}, @samp{powerpc64le},
-and @samp{rs64}.
+@samp{rs64}, and @samp{native}.
@option{-mcpu=powerpc}, @option{-mcpu=powerpc64}, and
@option{-mcpu=powerpc64le} specify pure 32-bit PowerPC (either
@@ -22341,6 +22341,12 @@ endian), 64-bit big endian PowerPC and 64-bit little endian PowerPC
architecture machine types, with an appropriate, generic processor
model assumed for scheduling purposes.
+Specifying @samp{native} as cpu type detects and selects the
+architecture option that corresponds to the host processor of the
+system performing the compilation.
+@option{-march=native} has no effect if GCC does not recognize the
+processor.
+
The other options specify a specific processor. Code generated under
those options runs best on that processor, and may not run at all on
others.