diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2005-01-05 11:56:24 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2005-01-05 11:56:24 +0000 |
commit | 712ecf4dfb9c7f3b48bc6c9fb1f749bab9e3e9ae (patch) | |
tree | 6efd23106891b6a35f005a429664406a66347b8e | |
parent | 082cca25d0bda9b7d688e898db0a1e7e2d9cf881 (diff) | |
download | gcc-712ecf4dfb9c7f3b48bc6c9fb1f749bab9e3e9ae.zip gcc-712ecf4dfb9c7f3b48bc6c9fb1f749bab9e3e9ae.tar.gz gcc-712ecf4dfb9c7f3b48bc6c9fb1f749bab9e3e9ae.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cd7bb6..efafbe2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 91850cb..77eec30 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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; diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 54fcef2..2278731 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -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: |