Disallow -mfpu=neon for unsuitable architectures.

2014-09-17  Andrew Stubbs  <ams@codesourcery.com>

	* config/arm/arm.c (arm_option_override): Reject -mfpu=neon
	when architecture is older than ARMv7.

From-SVN: r215321
This commit is contained in:
Andrew Stubbs 2014-09-17 10:59:54 +00:00 committed by Andrew Stubbs
parent 7e04aa3b4f
commit a3a5ee6efb
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-09-17 Andrew Stubbs <ams@codesourcery.com>
* config/arm/arm.c (arm_option_override): Reject -mfpu=neon
when architecture is older than ARMv7.
2014-09-16 John David Anglin <danglin@gcc.gnu.org>
PR target/61853

View File

@ -2845,6 +2845,9 @@ arm_option_override (void)
arm_fpu_desc = &all_fpus[arm_fpu_index];
if (TARGET_NEON && !arm_arch7)
error ("target CPU does not support NEON");
switch (arm_fpu_desc->model)
{
case ARM_FP_MODEL_VFP: