aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2009-04-28 16:45:19 +0000
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2009-04-28 16:45:19 +0000
commit0c48a567fac7d20cce4703e714f221e5bf332f65 (patch)
treeda7db5dab5a00fc3dcb07485d82f7d2a2f803cbd
parente6a5e544f7a09a9de801024cc2cb4e279a81ceb7 (diff)
downloadgcc-0c48a567fac7d20cce4703e714f221e5bf332f65.zip
gcc-0c48a567fac7d20cce4703e714f221e5bf332f65.tar.gz
gcc-0c48a567fac7d20cce4703e714f221e5bf332f65.tar.bz2
FPA error for AAPCS
From-SVN: r146906
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 610bd1c..2161bc6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 055cb36..a7847f3 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -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. */