public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/58869] New: switch -mcu=cortex-a7 conflicts with -march=armv7-a switch
@ 2013-10-25  6:17 wwfiney at hotmail dot com
  2013-10-29 23:44 ` [Bug target/58869] " rearnsha at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: wwfiney at hotmail dot com @ 2013-10-25  6:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58869

            Bug ID: 58869
           Summary: switch -mcu=cortex-a7 conflicts with -march=armv7-a
                    switch
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wwfiney at hotmail dot com

When I compile code for cortex-a7, gcc reported a warning:
cc1: warning: switch -mcu=cortex-a7 conflicts with -march=armv7-a switch
[enabled by default]
But cortex-a7 IS armv7-a architecture.
So how can I set this switch?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/58869] switch -mcu=cortex-a7 conflicts with -march=armv7-a switch
  2013-10-25  6:17 [Bug target/58869] New: switch -mcu=cortex-a7 conflicts with -march=armv7-a switch wwfiney at hotmail dot com
@ 2013-10-29 23:44 ` rearnsha at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2013-10-29 23:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58869

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
If you specify -mcpu, you don't need to also specify the architecture; the
compiler can work that out from the CPU.

At a technical level, Cortex-A7 implements the ARMv7ve variant of ARMv7, which
is why you get conflict messages (v7ve having the integer divide instructions),
the diagnostic is telling you that the architecture derived from the CPU option
is at variance with that coming from the -march option.

If you really want to generate strict ARMv7 code that is tuned for cortex-a7,
then use -march=armv7-a -mtune=cortex-a7.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-29 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-25  6:17 [Bug target/58869] New: switch -mcu=cortex-a7 conflicts with -march=armv7-a switch wwfiney at hotmail dot com
2013-10-29 23:44 ` [Bug target/58869] " rearnsha 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).