Disallow -mfpu=neon for unsuitable architectures.
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 17 Sep 2014 10:59:54 +0000 (10:59 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Wed, 17 Sep 2014 10:59:54 +0000 (10:59 +0000)
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

gcc/ChangeLog
gcc/config/arm/arm.c

index da2bcee6e642eac58dee851563cebea8fdc02668..88e8eb2e4c06009377afe9eab6628cdd304d5b7f 100644 (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
index e4a6aaac9ec84fc8b97aa64657a9cadcb9adb1d7..a289052408e117e4bcc5b78e1263c7d67bc90cf9 100644 (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: