This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch ARM] Emit error on using FPA with EABI.
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Ramana Radhakrishnan <Ramana dot Radhakrishnan at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Apr 2009 17:19:23 +0100
- Subject: Re: [Patch ARM] Emit error on using FPA with EABI.
- References: <39E9E98DF632C2469FF2FC07853B70C603ED94BD@ZIPPY.Emea.Arm.com>
On Tue, 2009-04-28 at 17:12 +0100, Ramana Radhakrishnan wrote:
> Hi,
>
> We presently allow -mfpu=fpa and friends to be used for the aapcs and
> aapcs-linux abis. This patch emits an error message in such cases. Ok to
> commit ?
>
>
> 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
>
> * config/arm/arm.c (arm_override_options): Emit error on using
> fpa with EABI.
>
+ if ((arm_abi == ARM_ABI_AAPCS
+ || arm_abi == ARM_ABI_AAPCS_LINUX)
+ && (arm_fp_model == ARM_FP_MODEL_FPA))
+ error ("FPA is unsupported in EABI");
+
No, just use TARGET_AAPCS_BASED.
R.