Commit a3a5ee6e by Andrew Stubbs Committed by Andrew Stubbs

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
parent 7e04aa3b
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
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment