From: Segher Boessenkool Date: Wed, 7 Jun 2017 15:04:46 +0000 (+0200) Subject: rs6000: Remove -mfloat-gprs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cdd1c4c48c1ec3c907d6763265504685f260327;p=gcc.git rs6000: Remove -mfloat-gprs This deletes -mfloat-gprs and the variables that go with it. * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs. * config/rs6000/rs6000.opt: Ditto. * config/rs6000/t-rtems: Ditto. From-SVN: r248976 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6ffccf3a82..01c5e4c774a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-06-07 Segher Boessenkool + + * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs. + * config/rs6000/rs6000.opt: Ditto. + * config/rs6000/t-rtems: Ditto. + 2017-06-07 Segher Boessenkool * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f1819b3fded..587ec18998a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -2841,9 +2841,6 @@ rs6000_debug_reg_global (void) if (rs6000_darwin64_abi) fprintf (stderr, DEBUG_FMT_S, "darwin64_abi", "true"); - if (rs6000_float_gprs) - fprintf (stderr, DEBUG_FMT_S, "float_gprs", "true"); - fprintf (stderr, DEBUG_FMT_S, "single_float", (TARGET_SINGLE_FLOAT ? "true" : "false")); @@ -4242,12 +4239,6 @@ rs6000_option_override_internal (bool global_init_p) if (!global_options_set.x_rs6000_spe) rs6000_spe = spe_capable_cpu; - - if (!global_options_set.x_rs6000_float_gprs) - rs6000_float_gprs = - (rs6000_cpu == PROCESSOR_PPC8540 ? 1 - : rs6000_cpu == PROCESSOR_PPC8548 ? 2 - : 0); } if (global_options_set.x_rs6000_spe_abi @@ -4262,8 +4253,7 @@ rs6000_option_override_internal (bool global_init_p) if (main_target_opt != NULL && ((main_target_opt->x_rs6000_spe_abi != rs6000_spe_abi) - || (main_target_opt->x_rs6000_spe != rs6000_spe) - || (main_target_opt->x_rs6000_float_gprs != rs6000_float_gprs))) + || (main_target_opt->x_rs6000_spe != rs6000_spe))) error ("target attribute or pragma changes SPE ABI"); if (rs6000_cpu == PROCESSOR_PPCE300C2 || rs6000_cpu == PROCESSOR_PPCE300C3 diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt index fdac5c733fc..c5c11c53593 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt @@ -449,26 +449,6 @@ mwarn-altivec-long Target Var(rs6000_warn_altivec_long) Init(1) Save Warn about deprecated 'vector long ...' AltiVec type usage. -mfloat-gprs= -Target RejectNegative Joined Enum(rs6000_float_gprs) Var(rs6000_float_gprs) Save --mfloat-gprs= Select GPR floating point method. - -Enum -Name(rs6000_float_gprs) Type(unsigned char) -Valid arguments to -mfloat-gprs=: - -EnumValue -Enum(rs6000_float_gprs) String(yes) Value(1) - -EnumValue -Enum(rs6000_float_gprs) String(single) Value(1) - -EnumValue -Enum(rs6000_float_gprs) String(double) Value(2) - -EnumValue -Enum(rs6000_float_gprs) String(no) Value(0) - mlong-double- Target RejectNegative Joined UInteger Var(rs6000_long_double_type_size) Save -mlong-double- Specify size of long double (64 or 128 bits). diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems index 7c7637d017f..723c6a37aaa 100644 --- a/gcc/config/rs6000/t-rtems +++ b/gcc/config/rs6000/t-rtems @@ -30,8 +30,8 @@ MULTILIB_DIRNAMES += m403 m505 m603e m604 m860 m7400 m8540 me6500 MULTILIB_OPTIONS += m32 MULTILIB_DIRNAMES += m32 -MULTILIB_OPTIONS += msoft-float/mfloat-gprs=double -MULTILIB_DIRNAMES += nof gprsdouble +MULTILIB_OPTIONS += msoft-float +MULTILIB_DIRNAMES += nof MULTILIB_OPTIONS += mno-spe/mno-altivec MULTILIB_DIRNAMES += nospe noaltivec @@ -56,10 +56,6 @@ MULTILIB_MATCHES += mcpu?750= # Map 8548 to 8540 MULTILIB_MATCHES += mcpu?8540=mcpu?8548 -# Map -mcpu=8540 -mfloat-gprs=single to -mcpu=8540 -# (mfloat-gprs=single is implicit default) -MULTILIB_MATCHES += mcpu?8540=mcpu?8540/mfloat-gprs?single - # Enumeration of multilibs MULTILIB_REQUIRED += msoft-float @@ -73,7 +69,6 @@ MULTILIB_REQUIRED += mcpu=7400 MULTILIB_REQUIRED += mcpu=7400/msoft-float MULTILIB_REQUIRED += mcpu=8540 MULTILIB_REQUIRED += mcpu=8540/msoft-float/mno-spe -MULTILIB_REQUIRED += mcpu=8540/mfloat-gprs=double MULTILIB_REQUIRED += mcpu=860 MULTILIB_REQUIRED += mcpu=e6500/m32 MULTILIB_REQUIRED += mcpu=e6500/m32/msoft-float/mno-altivec