diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2017-10-16 13:55:00 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2017-10-16 13:55:00 +0000 |
commit | 525f700d24e3ad5f5f0705243fd310d3bec8172d (patch) | |
tree | 90c1864c12bd8e908e554fddee6fc4e5a18758bd /gcc | |
parent | a310363e9028a084bf4148de7441f86deb879dbf (diff) | |
download | gcc-525f700d24e3ad5f5f0705243fd310d3bec8172d.zip gcc-525f700d24e3ad5f5f0705243fd310d3bec8172d.tar.gz gcc-525f700d24e3ad5f5f0705243fd310d3bec8172d.tar.bz2 |
[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 <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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm-cpus.in | 1 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 3 |
3 files changed, 10 insertions, 0 deletions
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 <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. 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}, |