From: Andrew Stubbs Date: Wed, 17 Sep 2014 10:59:54 +0000 (+0000) Subject: Disallow -mfpu=neon for unsuitable architectures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3a5ee6efbde701f37130b27dadbcd8493b2a5e5;p=gcc.git 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 --- 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: