aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2012-02-21 14:51:44 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2012-02-21 14:51:44 +0000
commit61369bb84962b5c4b90374ac73177920d19a2ddb (patch)
treec64b2bbcffb64a73bf97b69f19de30bf32920ef5
parent333f1d8799060805e6e26a9996d3ed5f7aad3202 (diff)
downloadgcc-61369bb84962b5c4b90374ac73177920d19a2ddb.zip
gcc-61369bb84962b5c4b90374ac73177920d19a2ddb.tar.gz
gcc-61369bb84962b5c4b90374ac73177920d19a2ddb.tar.bz2
s390.c (s390_option_override): Make -mhard-dfp the default if possible and not specified otherwise.
2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/s390.c (s390_option_override): Make -mhard-dfp the default if possible and not specified otherwise. From-SVN: r184439
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/s390.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 489befa..0ad9eb2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
+ default if possible and not specified otherwise.
+
2012-02-21 Richard Guenther <rguenther@suse.de>
PR middle-end/52314
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 824308a..d6e250f 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -1540,6 +1540,11 @@ s390_option_override (void)
if (TARGET_64BIT && !TARGET_ZARCH)
error ("64-bit ABI not supported in ESA/390 mode");
+ /* Use hardware DFP if available and not explicitly disabled by
+ user. E.g. with -m31 -march=z10 -mzarch */
+ if (!(target_flags_explicit & MASK_HARD_DFP) && TARGET_DFP)
+ target_flags |= MASK_HARD_DFP;
+
if (TARGET_HARD_DFP && !TARGET_DFP)
{
if (target_flags_explicit & MASK_HARD_DFP)