mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-20 03:30:28 +08:00
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:
parent
7e04aa3b4f
commit
a3a5ee6efb
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user