This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [arm-embedded] Simply enable GCC to support -march=armv6s-m as GAS does.
- From: "Richard Earnshaw (home)" <richard dot earnshaw at buzzard dot freeserve dot co dot uk>
- To: Terry Guo <terry dot guo at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Sep 2011 09:23:32 +0100
- Subject: Re: [arm-embedded] Simply enable GCC to support -march=armv6s-m as GAS does.
- References: <003401cc7027$e2483440$a6d89cc0$@guo@arm.com>
On 11 Sep 2011, at 03:10, "Terry Guo" <terry.guo@arm.com> wrote:
> Hello,
>
> This patch adds simple support of -march=armv6s-m which is already supported
> by GAS. With this patch, inline assembly code containing "SVC" instruction
> can be handled by option -march=armv6s-m. Otherwise one has to use option
> -mcpu=cortex-m0. Committed into ARM/embedded-4_6-branch.
>
> BR,
> Terry
>
> 2011-09-08 Terry Guo <terry.guo@arm.com>
>
> * config/arm/arm.c (all_architectures): Simple support for
> option -march=armv6s-m.
>
>
Ok.
R.
> Index: gcc/config/arm/arm.c
> ===================================================================
> --- gcc/config/arm/arm.c (revision 178753)
> +++ gcc/config/arm/arm.c (working copy)
> @@ -933,6 +933,7 @@
> {"armv6zk", arm1176jzs, "6ZK", FL_CO_PROC | FL_FOR_ARCH6ZK,
> NULL},
> {"armv6t2", arm1156t2s, "6T2", FL_CO_PROC | FL_FOR_ARCH6T2,
> NULL},
> {"armv6-m", cortexm1, "6M",
> FL_FOR_ARCH6M, NULL},
> + {"armv6s-m", cortexm1, "6M",
> FL_FOR_ARCH6M, NULL},
> {"armv7", cortexa8, "7", FL_CO_PROC |
> FL_FOR_ARCH7, NULL},
> {"armv7-a", cortexa8, "7A", FL_CO_PROC |
> FL_FOR_ARCH7A, NULL},
> {"armv7-r", cortexr4, "7R", FL_CO_PROC |
> FL_FOR_ARCH7R, NULL},
>
>
>