From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: support for Cortex-M7 in GNAT-GPL? Date: Thu, 16 Jul 2015 20:12:24 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="0b8a1d07de517ba95be21a60d7133ef5"; logging-data="16118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XB/6Od4+F4Nc1ZmFgSlAWTa9OAPjiyds=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:VlhC3x6nsDseRO658uN08eHotV4= sha1:wU7pJvtmU/ZKnUVxsT5UdPqk684= Xref: number.nntp.giganews.com comp.lang.ada:194137 Date: 2015-07-16T20:12:24+01:00 List-Id: 0x00080000@gmail.com writes: > As such, I'm still puzzled whether this version of gnat does indeed > has support for the Cortex-M7 or not. Did anybody on this forum > already tried this out? Since it says "unrecognized argument in option '-mcpu=cortex-m7'" I guess not. > Side thought: > both the Cortex-M4 and Cortex-M7 are based on the ARMv7-M ISA. > As such, specifying -mcpu=cortex-m4 just might work out fine > Despite this observation, recent versions of gcc do seem to insist on > using -mcpu=cortex-m7 (?) GCC 5.1.0 built with --with-arch=armv7 --with-mode=thumb doesn't allow -mcpu=cortex-m7. But you could try -march=armv7e-m; accepted on FSF and GNAT GPL, though since my RTS is presently for cortex-m3 I got gnat1: warning: switch -mcpu=cortex-m3 conflicts with -march=armv7e-m switch