Commit 712ecf4d by Richard Earnshaw Committed by Richard Earnshaw

arm.h (TARGET_OPTIONS): Correctly record -mhard-float and -msoft-float in target_float_switch.

* arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
-msoft-float in target_float_switch.
* arm.c (arm_override_options): Fix processing of target_float_switch.

From-SVN: r92949
parent 082cca25
2004-01-05 Richard Earnshaw <rearnsha@arm.com>
* arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
-msoft-float in target_float_switch.
* arm.c (arm_override_options): Fix processing of target_float_switch.
2004-01-05 Richard Earnshaw <rearnsha@arm.com>
* arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
preferencing.
......
......@@ -1088,7 +1088,7 @@ arm_override_options (void)
else if (target_float_switch)
{
/* This is a bit of a hack to avoid needing target flags for these. */
if (target_float_switch[1] == 'h')
if (target_float_switch[0] == 'h')
arm_float_abi = ARM_FLOAT_ABI_HARD;
else
arm_float_abi = ARM_FLOAT_ABI_SOFT;
......
......@@ -395,9 +395,9 @@ extern GTY(()) rtx aof_pic_label;
N_("Specify the register to be used for PIC addressing"), 0}, \
{"abi=", &target_abi_name, N_("Specify an ABI"), 0}, \
{"soft-float", &target_float_switch, \
N_("Alias for -mfloat-abi=soft"), 0}, \
N_("Alias for -mfloat-abi=soft"), "s"}, \
{"hard-float", &target_float_switch, \
N_("Alias for -mfloat-abi=hard"), 0} \
N_("Alias for -mfloat-abi=hard"), "h"} \
}
/* Support for a compile-time default CPU, et cetera. The rules are:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment