FPA error for AAPCS
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Tue, 28 Apr 2009 16:45:19 +0000 (16:45 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 28 Apr 2009 16:45:19 +0000 (16:45 +0000)
From-SVN: r146906

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

index 610bd1c49ae971fc4f7f126a99b75a1fa8074225..2161bc6fde6088aa545807f3833cef2f093470cb 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * config/arm/arm.c (arm_override_options): Emit error on using
+       fpa with AAPCS.
+
 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
 
        PR rtl-optimization/39914
index 055cb36d75dc90ccd1fa29bcd922eb1e703d3ec2..a7847f3235d0a77f5197f448d5ae1e75a4f37611 100644 (file)
@@ -1504,6 +1504,10 @@ arm_override_options (void)
   if (arm_float_abi == ARM_FLOAT_ABI_HARD && TARGET_VFP)
     sorry ("-mfloat-abi=hard and VFP");
 
+  if (TARGET_AAPCS_BASED
+      && (arm_fp_model == ARM_FP_MODEL_FPA))
+    error ("FPA is unsupported in the AAPCS");
+
   /* FPA and iWMMXt are incompatible because the insn encodings overlap.
      VFP and iWMMXt can theoretically coexist, but it's unlikely such silicon
      will ever exist.  GCC makes no attempt to support this combination.  */