public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
@ 2013-07-16 12:04 christian.helmuth@genode-labs.com
  2013-07-23 16:23 ` [Bug target/57907] " rearnsha at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: christian.helmuth@genode-labs.com @ 2013-07-16 12:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57907
           Summary: warning: switch -mcpu=cortex-a15 conflicts with
                    -march=armv7-a switch [enabled by default]
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christian.helmuth@genode-labs.com

The manpage states that "This option [-march] can be used in conjunction with
or instead of the -mcpu= option." and this works for, e.g., -mcpu=cortex-a9. On
the other GCC complains for -mcpu=cortex-a15 and -mcpu=cortex-a7 in conjunction
with -march=armv7-a.

The following command line reproduces the issue:

> echo "int main() {}" | /usr/local/genode-gcc/bin/genode-arm-g++ -c -x c++ - -o /tmp/stdin.o -march=armv7-a -mcpu=cortex-a15
<stdin>:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a
switch [enabled by default]

Examples in bugzilla never user both options for ARM but just -mcpu. Will the
combination be supported in the future or should I adapt the mcpu-only
approach? Does it have drawbacks?


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

* [Bug target/57907] warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
  2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
@ 2013-07-23 16:23 ` rearnsha at gcc dot gnu.org
  2013-08-14 15:50 ` ramana at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2013-07-23 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
You get the warning because Cortex-A15 implements a superset of ARM-v7a, due to
the addition of the HW division instructions.  This means that -march=armv7-a
and -mcpu=cortex-a15 leads to an ambiguity as to what architectural features
you want and hence the warning.

It's not currently possible to specify the exact architecture variant that A15
supports in the command line; we're looking at fixing that in future.


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

* [Bug target/57907] warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
  2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
  2013-07-23 16:23 ` [Bug target/57907] " rearnsha at gcc dot gnu.org
@ 2013-08-14 15:50 ` ramana at gcc dot gnu.org
  2014-01-29 14:38 ` alexander.stohr at gmx dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2013-08-14 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-14
                 CC|                            |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1


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

* [Bug target/57907] warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
  2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
  2013-07-23 16:23 ` [Bug target/57907] " rearnsha at gcc dot gnu.org
  2013-08-14 15:50 ` ramana at gcc dot gnu.org
@ 2014-01-29 14:38 ` alexander.stohr at gmx dot de
  2014-01-29 14:40 ` ramana at gcc dot gnu.org
  2014-02-11 15:58 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: alexander.stohr at gmx dot de @ 2014-01-29 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

Alexander Stohr <alexander.stohr at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexander.stohr at gmx dot de

--- Comment #2 from Alexander Stohr <alexander.stohr at gmx dot de> ---
Cortex-A15 is getting pretty widespread with even a speed up / follow up /
revised variant popping up from the chip vendors.
having no matching command set profile for that core should not be the long
term state.
ticking this report now in the hope it can be resolved in a near future now.


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

* [Bug target/57907] warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
  2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
                   ` (2 preceding siblings ...)
  2014-01-29 14:38 ` alexander.stohr at gmx dot de
@ 2014-01-29 14:40 ` ramana at gcc dot gnu.org
  2014-02-11 15:58 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-01-29 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0

--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
This is now fixed. 

With the commit for v7ve http://gcc.gnu.org/ml/gcc-cvs/2014-01/msg00982.html

Ramana


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

* [Bug target/57907] warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
  2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
                   ` (3 preceding siblings ...)
  2014-01-29 14:40 ` ramana at gcc dot gnu.org
@ 2014-02-11 15:58 ` ramana at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-02-11 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
fixed.


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

end of thread, other threads:[~2014-02-11 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 12:04 [Bug target/57907] New: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default] christian.helmuth@genode-labs.com
2013-07-23 16:23 ` [Bug target/57907] " rearnsha at gcc dot gnu.org
2013-08-14 15:50 ` ramana at gcc dot gnu.org
2014-01-29 14:38 ` alexander.stohr at gmx dot de
2014-01-29 14:40 ` ramana at gcc dot gnu.org
2014-02-11 15:58 ` ramana 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).