public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets
@ 2014-01-08 11:34 bogden at arm dot com
2014-01-08 11:59 ` [Bug target/59718] " rearnsha at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bogden at arm dot com @ 2014-01-08 11:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
Bug ID: 59718
Summary: Behaviour of -mcpu documented incorrectly for ARM
targets
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: bogden at arm dot com
I am given to understand that the behaviour of the -mcpu option for both the
ARM and AArch64 targets is that it is a shorthand for specifying -march=foo
-mtune=bar, where bar is a CPU that implements foo.
However, the documentation for AArch64
(gcc-4.8.2/gcc/AArch64-Options.html#AArch64-Options) says that -mcpu is the
same as -march, except that it takes CPU names rather than architecture
versions.
http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/ARM-Options.html#ARM-Options is
similar except that it seems to describe the correct behaviour in one specific
case.
These sections should be rewritten to correctly describe the behaviour of
-mcpu.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59718] Behaviour of -mcpu documented incorrectly for ARM targets
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
@ 2014-01-08 11:59 ` rearnsha at gcc dot gnu.org
2014-02-05 11:43 ` jgreenhalgh at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2014-01-08 11:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |arm, aarch64
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-08
CC| |jgreenhalgh at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Yes, the docs could be much clearer.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59718] Behaviour of -mcpu documented incorrectly for ARM targets
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
2014-01-08 11:59 ` [Bug target/59718] " rearnsha at gcc dot gnu.org
@ 2014-02-05 11:43 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 14:41 ` jgreenhalgh at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-02-05 11:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
--- Comment #2 from jgreenhalgh at gcc dot gnu.org ---
Author: jgreenhalgh
Date: Wed Feb 5 11:42:50 2014
New Revision: 207501
URL: http://gcc.gnu.org/viewcvs?rev=207501&root=gcc&view=rev
Log:
[ARM Documentation] Clarify -mcpu, -mtune, -march
gcc/
PR target/59718
* doc/invoke.texi (-march=): Clarify documentation for ARM.
(-mtune=): Likewise.
(-mcpu=): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/invoke.texi
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59718] Behaviour of -mcpu documented incorrectly for ARM targets
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
2014-01-08 11:59 ` [Bug target/59718] " rearnsha at gcc dot gnu.org
2014-02-05 11:43 ` jgreenhalgh at gcc dot gnu.org
@ 2014-02-05 14:41 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 14:55 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 15:03 ` jgreenhalgh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-02-05 14:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
--- Comment #3 from jgreenhalgh at gcc dot gnu.org ---
Author: jgreenhalgh
Date: Wed Feb 5 14:40:36 2014
New Revision: 207505
URL: http://gcc.gnu.org/viewcvs?rev=207505&root=gcc&view=rev
Log:
[Backport: ARM Documentation] Clarify -mcpu, -mtune, -march
gcc/
Backport from mainline.
2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
PR target/59718
* doc/invoke.texi (-march): Clarify documentation for ARM.
(-mtune): Likewise.
(-mcpu): Likewise.
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/doc/invoke.texi
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59718] Behaviour of -mcpu documented incorrectly for ARM targets
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
` (2 preceding siblings ...)
2014-02-05 14:41 ` jgreenhalgh at gcc dot gnu.org
@ 2014-02-05 14:55 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 15:03 ` jgreenhalgh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-02-05 14:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
--- Comment #4 from jgreenhalgh at gcc dot gnu.org ---
Author: jgreenhalgh
Date: Wed Feb 5 14:55:18 2014
New Revision: 207506
URL: http://gcc.gnu.org/viewcvs?rev=207506&root=gcc&view=rev
Log:
[Backport: ARM Documentation] Clarify -mcpu, -mtune, -march
gcc/
Backport from mainline.
2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
PR target/59718
* doc/invoke.texi (-march): Clarify documentation for ARM.
(-mtune): Likewise.
(-mcpu): Likewise.
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/doc/invoke.texi
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59718] Behaviour of -mcpu documented incorrectly for ARM targets
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
` (3 preceding siblings ...)
2014-02-05 14:55 ` jgreenhalgh at gcc dot gnu.org
@ 2014-02-05 15:03 ` jgreenhalgh at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-02-05 15:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59718
jgreenhalgh at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from jgreenhalgh at gcc dot gnu.org ---
Fixed on trunk and all current release branches (4.8/4.7). The text now reads:
This specifies the name of the target ARM processor. GCC uses this name
to derive the name of the target ARM architecture (as if specified
by -march) and the ARM processor type for which to tune for
performance (as if specified by -mtune). Where this option
is used in conjunction with -march or -mtune,
those options take precedence over the appropriate part of this option.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-05 15:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08 11:34 [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets bogden at arm dot com
2014-01-08 11:59 ` [Bug target/59718] " rearnsha at gcc dot gnu.org
2014-02-05 11:43 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 14:41 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 14:55 ` jgreenhalgh at gcc dot gnu.org
2014-02-05 15:03 ` jgreenhalgh at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).