From a3a5ee6efbde701f37130b27dadbcd8493b2a5e5 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Wed, 17 Sep 2014 10:59:54 +0000 Subject: [PATCH] Disallow -mfpu=neon for unsuitable architectures. 2014-09-17 Andrew Stubbs * config/arm/arm.c (arm_option_override): Reject -mfpu=neon when architecture is older than ARMv7. From-SVN: r215321 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da2bcee6e64..88e8eb2e4c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-17 Andrew Stubbs + + * config/arm/arm.c (arm_option_override): Reject -mfpu=neon + when architecture is older than ARMv7. + 2014-09-16 John David Anglin PR target/61853 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e4a6aaac9ec..a289052408e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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: -- 2.30.2