This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [arm-embedded] Simply enable GCC to support -march=armv6s-m as GAS does.


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},
> 
> 
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]