[ARM] Allow +nodsp for -mcpu=cortex-m33
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 16 Oct 2017 13:55:00 +0000 (13:55 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Mon, 16 Oct 2017 13:55:00 +0000 (13:55 +0000)
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  <thomas.preudhomme@arm.com>

    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
gcc/config/arm/arm-cpus.in
gcc/doc/invoke.texi

index 3a85f8c..71f8739 100644 (file)
@@ -1,3 +1,9 @@
+2017-10-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * 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  <mliska@suse.cz>
 
        * sbitmap.c (bitmap_bit_in_range_p_checking): New function.
index 2da2a7d..0820ad7 100644 (file)
@@ -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
 
index b358e09..6518ac0 100644 (file)
@@ -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},