From 525f700d24e3ad5f5f0705243fd310d3bec8172d Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 16 Oct 2017 13:55:00 +0000 Subject: [PATCH] [ARM] Allow +nodsp for -mcpu=cortex-m33 DSP instructions are optional for Arm Cortex-M33, yet its -mcpu option does not allow +nodsp. Users are thus left with using -march=armv8-m.main -mtune=cortex-m33. This patch allows +nodsp to -mcpu=cortex-m33. 2017-10-16 Thomas Preud'homme gcc/ * config/arm/arm-cpus.in (cortex-m33): Add nodsp option. * doc/invoke.texi: Document +nodsp as a valid extension for -mcpu=cortex-m33. From-SVN: r253787 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm-cpus.in | 1 + gcc/doc/invoke.texi | 3 +++ 3 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a85f8c..71f8739 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-10-16 Thomas Preud'homme + + * config/arm/arm-cpus.in (cortex-m33): Add nodsp option. + * doc/invoke.texi: Document +nodsp as a valid extension for + -mcpu=cortex-m33. + 2017-10-16 Martin Liska * sbitmap.c (bitmap_bit_in_range_p_checking): New function. diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index 2da2a7d..0820ad7 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -1532,6 +1532,7 @@ begin cpu cortex-m33 architecture armv8-m.main+dsp fpu fpv5-sp-d16 option nofp remove ALL_FP + option nodsp remove armv7em costs v7m end cpu cortex-m33 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index b358e09..6518ac0 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -15813,6 +15813,9 @@ Permissible names for this option are the same as those for The following extension options are common to the listed CPUs: @table @samp +@item +nodsp +Disable the DSP instructions on @samp{cortex-m33}. + @item +nofp Disables the floating-point instructions on @samp{arm9e}, @samp{arm946e-s}, @samp{arm966e-s}, @samp{arm968e-s}, @samp{arm10e}, -- 2.7.4