public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64802] New: [ARM] Selecting an -mcpu or -march that supports only one of ARM/Thumb should default to the ISA that *is* supported
@ 2015-01-26 14:53 ktkachov at gcc dot gnu.org
  2015-03-17 22:09 ` [Bug target/64802] " ramana at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2015-01-26 14:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64802

            Bug ID: 64802
           Summary: [ARM] Selecting an -mcpu or -march that supports only
                    one of ARM/Thumb should default to the ISA that *is*
                    supported
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
            Target: arm*

Currently for an arm-none-eabi-gcc configured with --with-fpu=neon-fp-armv8
--with-arch=armv8-a (or any configuration I suspect)
if I try to compile something with -mcpu=cortex-m3 I get an error:
pc.c:1:0: error: target CPU does not support ARM mode
 int main(void)
 ^
It only works if I add an -mthumb to the command line.
I think this is unhelpful. If a given -march or -mcpu doesn't support ARM mode
then the compilation should default to Thumb code generation that the
architecture supports unless the user explicitly specifies -marm (in which case
we should error out).

This would need some reorg in the way TARGET_ARM and TARGET_THUMB are defined
through arm.opt and perhaps arm_option_override


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

* [Bug target/64802] [ARM] Selecting an -mcpu or -march that supports only one of ARM/Thumb should default to the ISA that *is* supported
  2015-01-26 14:53 [Bug target/64802] New: [ARM] Selecting an -mcpu or -march that supports only one of ARM/Thumb should default to the ISA that *is* supported ktkachov at gcc dot gnu.org
@ 2015-03-17 22:09 ` ramana at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: ramana at gcc dot gnu.org @ 2015-03-17 22:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64802

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-17
                 CC|                            |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Confirmed.


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

end of thread, other threads:[~2015-03-17 22:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-26 14:53 [Bug target/64802] New: [ARM] Selecting an -mcpu or -march that supports only one of ARM/Thumb should default to the ISA that *is* supported ktkachov at gcc dot gnu.org
2015-03-17 22:09 ` [Bug target/64802] " 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).