From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31713 invoked by alias); 8 Jan 2014 11:34:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31635 invoked by uid 48); 8 Jan 2014 11:34:45 -0000 From: "bogden at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59718] New: Behaviour of -mcpu documented incorrectly for ARM targets Date: Wed, 08 Jan 2014 11:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bogden at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00757.txt.bz2 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.