diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2018-03-15 16:17:07 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2018-03-15 16:17:07 +0100 |
commit | 244688fb39c1245cc137ae39a25fbc72eec83f56 (patch) | |
tree | 0a9ac1491e16e681d21a88af0214a32ba85044e9 | |
parent | 919674fb7d619c94ec5395a703144c7e75c93814 (diff) | |
download | gcc-244688fb39c1245cc137ae39a25fbc72eec83f56.zip gcc-244688fb39c1245cc137ae39a25fbc72eec83f56.tar.gz gcc-244688fb39c1245cc137ae39a25fbc72eec83f56.tar.bz2 |
rs6000: Fix for the previous abi_v4_pass_in_fpr change
I was a bit over-enthusiastic, we still support xilinxfp.
* config/rs6000/rs6000.c (abi_v4_pass_in_fpr): Add back the
TARGET_DOUBLE_FLOAT and TARGET_SINGLE_FLOAT conditions on the DFmode
resp. SFmode cases.
From-SVN: r258557
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7772d5d..4a35afb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-03-15 Segher Boessenkool <segher@kernel.crashing.org> + + * config/rs6000/rs6000.c (abi_v4_pass_in_fpr): Add back the + TARGET_DOUBLE_FLOAT and TARGET_SINGLE_FLOAT conditions on the DFmode + resp. SFmode cases. + 2018-03-15 Tamar Christina <tamar.christina@arm.com> PR target/84711 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f8120a2..45ed04f 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11453,9 +11453,9 @@ abi_v4_pass_in_fpr (machine_mode mode, bool named) { if (!TARGET_HARD_FLOAT) return false; - if (mode == DFmode) + if (TARGET_DOUBLE_FLOAT && mode == DFmode) return true; - if (mode == SFmode && named) + if (TARGET_SINGLE_FLOAT && mode == SFmode && named) return true; /* ABI_V4 passes complex IBM long double in 8 gprs. Stupid, but we can't change the ABI now. */ |